Class: NexusParser::Tokens::BeginBlk

Inherits:
Token
  • Object
show all
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

#value

Method Summary

Methods inherited from Token

#initialize

Constructor Details

This class inherits a constructor from NexusParser::Tokens::Token