Class: NexusParser::Tokens::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/nexus_parser/tokens.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Token

Returns a new instance of Token.



9
10
11
# File 'lib/nexus_parser/tokens.rb', line 9

def initialize(str)
  @value = str
end

Class Attribute Details

.regexpObject (readonly)

Returns the value of attribute regexp.



7
8
9
# File 'lib/nexus_parser/tokens.rb', line 7

def regexp
  @regexp
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/nexus_parser/tokens.rb', line 8

def value
  @value
end