Class: URIPattern::PatternString::Part
- Inherits:
-
Struct
- Object
- Struct
- URIPattern::PatternString::Part
- Defined in:
- lib/uri_pattern/pattern_string.rb
Instance Attribute Summary collapse
-
#modifier ⇒ Object
Returns the value of attribute modifier.
-
#name ⇒ Object
Returns the value of attribute name.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#modifier ⇒ Object
Returns the value of attribute modifier
23 24 25 |
# File 'lib/uri_pattern/pattern_string.rb', line 23 def modifier @modifier end |
#name ⇒ Object
Returns the value of attribute name
23 24 25 |
# File 'lib/uri_pattern/pattern_string.rb', line 23 def name @name end |
#prefix ⇒ Object
Returns the value of attribute prefix
23 24 25 |
# File 'lib/uri_pattern/pattern_string.rb', line 23 def prefix @prefix end |
#suffix ⇒ Object
Returns the value of attribute suffix
23 24 25 |
# File 'lib/uri_pattern/pattern_string.rb', line 23 def suffix @suffix end |
#type ⇒ Object
Returns the value of attribute type
23 24 25 |
# File 'lib/uri_pattern/pattern_string.rb', line 23 def type @type end |
#value ⇒ Object
Returns the value of attribute value
23 24 25 |
# File 'lib/uri_pattern/pattern_string.rb', line 23 def value @value end |
Instance Method Details
#custom_name? ⇒ Boolean
24 25 26 |
# File 'lib/uri_pattern/pattern_string.rb', line 24 def custom_name? name.is_a?(String) && !name.empty? end |