Class: SimpleRouter::Routes::Route
- Inherits:
-
Array
- Object
- Array
- SimpleRouter::Routes::Route
- Defined in:
- lib/simple_router/routes.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#options ⇒ Object
Returns the value of attribute options.
-
#path ⇒ Object
Returns the value of attribute path.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(verb, path, options, &action) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(verb, path, options, &action) ⇒ Route
Returns a new instance of Route.
28 29 30 31 32 33 |
# File 'lib/simple_router/routes.rb', line 28 def initialize(verb, path, , &action) self.verb = verb self.path = path self. = self.action = action end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
26 27 28 |
# File 'lib/simple_router/routes.rb', line 26 def action @action end |
#options ⇒ Object
Returns the value of attribute options.
26 27 28 |
# File 'lib/simple_router/routes.rb', line 26 def @options end |
#path ⇒ Object
Returns the value of attribute path.
26 27 28 |
# File 'lib/simple_router/routes.rb', line 26 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
26 27 28 |
# File 'lib/simple_router/routes.rb', line 26 def verb @verb end |