class KPeg::Action
Attributes
action[R]
Public Class Methods
new(action)
click to toggle source
Calls superclass method
KPeg::Operator::new
# File lib/kpeg/grammar.rb, line 549 def initialize(action) super() @action = action end
Public Instance Methods
==(obj)
click to toggle source
Calls superclass method
# File lib/kpeg/grammar.rb, line 560 def ==(obj) case obj when Action @action == obj.action else super end end
inspect()
click to toggle source
# File lib/kpeg/grammar.rb, line 569 def inspect inspect_type "action", "=> #{action.inspect}" end
match(x)
click to toggle source
# File lib/kpeg/grammar.rb, line 556 def match(x) return MatchString.new(self, "") end