Class: NexusParser::Tokens::ID

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

Overview

labels

Instance Attribute Summary

Attributes inherited from Token

#value

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ ID

Returns a new instance of ID.



194
195
196
197
198
# File 'lib/nexus_parser/tokens.rb', line 194

def initialize(str)
  str.strip!
  str = str[1..-2] if str[0..0] == "'" # get rid of quote marks
  @value = str
end