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, #lhs=, #matches?, #see, #wantarrow

Constructor Details

#initialize(starter, linenum) ⇒ StringContext

Returns a new instance of StringContext.



227
228
229
# File 'lib/rubylexer/context.rb', line 227

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