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.



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

def initialize(str)
  @value = str
end

Class Attribute Details

.regexpObject (readonly)

Returns the value of attribute regexp.



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

def regexp
  @regexp
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end