Class: Dragonfly::UrlMapper::Segment
- Defined in:
- lib/dragonfly/url_mapper.rb
Instance Attribute Summary collapse
-
#param ⇒ Object
Returns the value of attribute param.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#seperator ⇒ Object
Returns the value of attribute seperator.
Instance Method Summary collapse
Instance Attribute Details
#param ⇒ Object
Returns the value of attribute param
19 20 21 |
# File 'lib/dragonfly/url_mapper.rb', line 19 def param @param end |
#pattern ⇒ Object
Returns the value of attribute pattern
19 20 21 |
# File 'lib/dragonfly/url_mapper.rb', line 19 def pattern @pattern end |
#seperator ⇒ Object
Returns the value of attribute seperator
19 20 21 |
# File 'lib/dragonfly/url_mapper.rb', line 19 def seperator @seperator end |
Instance Method Details
#regexp_string ⇒ Object
20 21 22 |
# File 'lib/dragonfly/url_mapper.rb', line 20 def regexp_string @regexp_string ||= "(#{Regexp.escape(seperator)}#{pattern}+?)?" end |