Class: RubyLexer::NestedContexts::ParenContext

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

Direct Known Subclasses

KnownNestedLhsParenContext

Instance Attribute Summary collapse

Attributes inherited from NestedContext

#ender, #linenum, #starter

Instance Method Summary collapse

Methods inherited from NestedContext

#matches?, #wantarrow

Constructor Details

#initialize(linenum) ⇒ ParenContext

Returns a new instance of ParenContext.



56
57
58
# File 'lib/rubylexer/context.rb', line 56

def initialize(linenum)
  super('(', ')' ,linenum)
end

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



60
61
62
# File 'lib/rubylexer/context.rb', line 60

def lhs
  @lhs
end

Instance Method Details

#see(lxr, msg) ⇒ Object



61
62
63
# File 'lib/rubylexer/context.rb', line 61

def see(lxr,msg)
  @lhs=true if msg==:comma || msg==:splat
end