Class: Padrino::Routing::Parent
- Inherits:
-
String
- Object
- String
- Padrino::Routing::Parent
- Defined in:
- lib/padrino-core/application/routing.rb
Instance Attribute Summary collapse
-
#map ⇒ Object
readonly
Returns the value of attribute map.
-
#optional ⇒ Object
(also: #optional?)
readonly
Returns the value of attribute optional.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(value, options = {}) ⇒ Parent
constructor
A new instance of Parent.
Constructor Details
#initialize(value, options = {}) ⇒ Parent
Returns a new instance of Parent.
39 40 41 42 43 44 |
# File 'lib/padrino-core/application/routing.rb', line 39 def initialize(value, ={}) super(value.to_s) @map = .delete(:map) @optional = .delete(:optional) @options = end |
Instance Attribute Details
#map ⇒ Object (readonly)
Returns the value of attribute map.
33 34 35 |
# File 'lib/padrino-core/application/routing.rb', line 33 def map @map end |
#optional ⇒ Object (readonly) Also known as: optional?
Returns the value of attribute optional.
34 35 36 |
# File 'lib/padrino-core/application/routing.rb', line 34 def optional @optional end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
35 36 37 |
# File 'lib/padrino-core/application/routing.rb', line 35 def @options end |