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.
201 202 203 204 205 |
# File 'lib/nexus_parser/tokens.rb', line 201 def initialize(str) str.strip! str = str[1..-2] if str[0..0] == "'" # get rid of quote marks @value = str end |