Class: Hobby::Router::Builder::Map

Inherits:
Object
  • Object
show all
Defined in:
lib/hobby/router/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, app, &block) ⇒ Map

Returns a new instance of Map.



19
20
21
# File 'lib/hobby/router/builder.rb', line 19

def initialize path, app, &block
  @path, @app, @block = path, app, block
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



18
19
20
# File 'lib/hobby/router/builder.rb', line 18

def app
  @app
end

#blockObject (readonly)

Returns the value of attribute block.



18
19
20
# File 'lib/hobby/router/builder.rb', line 18

def block
  @block
end

#pathObject (readonly)

Returns the value of attribute path.



18
19
20
# File 'lib/hobby/router/builder.rb', line 18

def path
  @path
end