Class: NexusParser::Tokens::BeginBlk
- Defined in:
- lib/nexus_parser/tokens.rb
Overview
at present we strip comments pre-parser initialization, because they can be placed anywhere it gets tricky to parse otherwise, and besides, they are non-standard class NexusComment < Token
@regexp = Regexp.new(/\A\s*(\[[^\]]*\])\s*/i)
def initialize(str)
str = str[1..-2] # strip the []
str.strip!
@value = str
end
end
Instance Attribute Summary
Attributes inherited from Token
Method Summary
Methods inherited from Token
Constructor Details
This class inherits a constructor from NexusParser::Tokens::Token