Class: Ruta::Config
- Inherits:
-
Object
- Object
- Ruta::Config
- Defined in:
- lib/ruta.rb
Instance Attribute Summary collapse
-
#context_prefix ⇒ Object
Returns the value of attribute context_prefix.
Instance Method Summary collapse
- #configure(&block) ⇒ Object
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
19 20 21 22 23 |
# File 'lib/ruta.rb', line 19 def initialize &block @context_prefix = false block_given? instance_exec(self,&block) if block_given? end |
Instance Attribute Details
#context_prefix ⇒ Object
Returns the value of attribute context_prefix.
18 19 20 |
# File 'lib/ruta.rb', line 18 def context_prefix @context_prefix end |
Instance Method Details
#configure(&block) ⇒ Object
25 26 27 |
# File 'lib/ruta.rb', line 25 def configure &block instance_exec(&block) end |