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