Class: RubyLexer::NestedContexts::ListImmedContext

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

Instance Attribute Summary

Attributes inherited from NestedContext

#ender, #linenum, #starter

Instance Method Summary collapse

Methods inherited from NestedContext

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

Constructor Details

#initialize(starter, linenum) ⇒ ListImmedContext

Returns a new instance of ListImmedContext.



49
50
51
52
# File 'lib/rubylexer/context.rb', line 49

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

Instance Method Details

#wantarrowObject



53
# File 'lib/rubylexer/context.rb', line 53

def wantarrow; true end