Class: OboParser::Tokens::Label
Overview
same as ID
Instance Attribute Summary
Attributes inherited from Token
Instance Method Summary collapse
-
#initialize(str) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(str) ⇒ Label
Returns a new instance of Label.
189 190 191 192 193 194 195 |
# File 'lib/tokens.rb', line 189 def initialize(str) str.strip! str = str[1..-2] if str[0..0] == "'" # get rid of quote marks str = str[1..-2] if str[0..0] == '"' str.strip! @value = str end |