Class: URIPattern::PatternString::Part

Inherits:
Struct
  • Object
show all
Defined in:
lib/uri_pattern/pattern_string.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#modifierObject

Returns the value of attribute modifier

Returns:

  • (Object)

    the current value of modifier



23
24
25
# File 'lib/uri_pattern/pattern_string.rb', line 23

def modifier
  @modifier
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'lib/uri_pattern/pattern_string.rb', line 23

def name
  @name
end

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



23
24
25
# File 'lib/uri_pattern/pattern_string.rb', line 23

def prefix
  @prefix
end

#suffixObject

Returns the value of attribute suffix

Returns:

  • (Object)

    the current value of suffix



23
24
25
# File 'lib/uri_pattern/pattern_string.rb', line 23

def suffix
  @suffix
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



23
24
25
# File 'lib/uri_pattern/pattern_string.rb', line 23

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



23
24
25
# File 'lib/uri_pattern/pattern_string.rb', line 23

def value
  @value
end

Instance Method Details

#custom_name?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/uri_pattern/pattern_string.rb', line 24

def custom_name?
  name.is_a?(String) && !name.empty?
end