Class: RubyLexer::NestedContexts::StringContext

Inherits:
NestedContext show all
Defined in:
lib/rubylexer/context.rb

Overview

not used yet

Direct Known Subclasses

HereStringContext

Instance Attribute Summary

Attributes inherited from NestedContext

#ender, #linenum, #starter

Instance Method Summary collapse

Methods inherited from NestedContext

#lhs=, #matches?, #see, #wantarrow

Constructor Details

#initialize(starter, linenum) ⇒ StringContext

Returns a new instance of StringContext.



220
221
222
# File 'lib/rubylexer/context.rb', line 220

def initialize(starter,linenum)
  super(starter, starter[-1,1].tr!('{[(','}])'),linenum)
end