Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
awesim-cli
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gateways
awesim-cli
Merge requests
!3
Refactor: remove duplication, remove unused code, etc.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor: remove duplication, remove unused code, etc.
refactor
into
master
Overview
0
Commits
6
Pipelines
0
Changes
11
Merged
Eric Franz
requested to merge
refactor
into
master
9 years ago
Overview
0
Commits
6
Pipelines
0
Changes
11
Expand
Created by: ericfranz
Use a module to share methods that return app and router!
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7d8f694b
6 commits,
4 years ago
11 files
+
93
−
436
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
lib/awesim/app_with_url.rb
+
11
−
0
Options
@@ -3,6 +3,17 @@ require 'delegate'
module
AweSim
# decorator of App to add URL
class
AppWithUrl
<
Delegator
def
self
.
at
(
path:
nil
,
router:
nil
)
AweSim
::
AppWithUrl
.
new
(
AweSim
::
App
.
at
(
path:
path
),
router
)
end
def
self
.
all_at
(
path:
nil
,
router:
nil
)
AweSim
::
App
.
all_at
(
path:
path
).
map
do
|
app
|
AweSim
::
AppWithUrl
.
new
(
app
,
router
)
end
end
def
initialize
(
app
,
router
)
super
(
app
)
Loading