Class: Ruta::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/ruta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_prefixObject

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