Class: EmberRoutes::Config
- Inherits:
-
Object
- Object
- EmberRoutes::Config
- Defined in:
- lib/ember_routes/config.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #config(&block) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #routes(&block) ⇒ Object
Constructor Details
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
4 5 6 |
# File 'lib/ember_routes/config.rb', line 4 def base_url @base_url end |
#prefix ⇒ Object
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/ember_routes/config.rb', line 4 def prefix @prefix end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
5 6 7 |
# File 'lib/ember_routes/config.rb', line 5 def root @root end |
Instance Method Details
#config(&block) ⇒ Object
13 14 15 |
# File 'lib/ember_routes/config.rb', line 13 def config(&block) generate_methods end |
#routes(&block) ⇒ Object
17 18 19 |
# File 'lib/ember_routes/config.rb', line 17 def routes(&block) @root.instance_eval &block end |