Class: Walle::Robot::Router::Route::Mutator

Inherits:
Object
  • Object
show all
Defined in:
lib/walle/robot/router/route.rb

Direct Known Subclasses

Direct, Prefix

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env, regexp, options = {}) ⇒ Mutator



11
12
13
14
15
# File 'lib/walle/robot/router/route.rb', line 11

def initialize(env, regexp, options = {})
  @env = env
  @regexp = regexp
  @options = options
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



9
10
11
# File 'lib/walle/robot/router/route.rb', line 9

def env
  @env
end

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/walle/robot/router/route.rb', line 9

def options
  @options
end

#regexpObject (readonly)

Returns the value of attribute regexp.



9
10
11
# File 'lib/walle/robot/router/route.rb', line 9

def regexp
  @regexp
end