Class: RubyLexer::NestedContexts::ParamListContext

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

Overview

class BlockParamListContext < ListContext

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

Instance Attribute Summary

Attributes inherited from NestedContext

#ender, #linenum, #starter

Instance Method Summary collapse

Methods inherited from NestedContext

#lhs=, #matches?, #see

Constructor Details

#initialize(linenum) ⇒ ParamListContext

Returns a new instance of ParamListContext.



100
101
102
# File 'lib/rubylexer/context.rb', line 100

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

Instance Method Details

#lhsObject



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

def lhs; false end

#wantarrowObject



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

def wantarrow; true end