Class: Padrino::Routing::Parent
- Defined in:
- lib/vendored-middleman-deps/padrino-core-0.11.2/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.
Methods inherited from String
#camelize, #classify, colors, #constantize, #pluralize, #singularize, #undent, #underscore
Constructor Details
#initialize(value, options = {}) ⇒ Parent
Returns a new instance of Parent.
205 206 207 208 209 210 |
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/routing.rb', line 205 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.
199 200 201 |
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/routing.rb', line 199 def map @map end |
#optional ⇒ Object (readonly) Also known as: optional?
Returns the value of attribute optional.
200 201 202 |
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/routing.rb', line 200 def optional @optional end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
201 202 203 |
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/application/routing.rb', line 201 def @options end |