Class: NexusParser::Tokens::ID
- Defined in:
- lib/nexus_parser/tokens.rb
Overview
labels
Instance Attribute Summary
Attributes inherited from Token
Instance Method Summary collapse
-
#initialize(str) ⇒ ID
constructor
A new instance of ID.
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 |