class LL::Operator

Class for operators such as + and *.

Attributes

receiver[R]
source_line[R]
type[R]

Public Class Methods

new(type, receiver, source_line) click to toggle source

@param [Symbol] type @param [LL::Rule] receiver @param [LL::SourceLine] source_line

# File lib/ll/operator.rb, line 13
def initialize(type, receiver, source_line)
  @type        = type
  @receiver    = receiver
  @source_line = source_line
end

Public Instance Methods

inspect() click to toggle source

@return [String]

# File lib/ll/operator.rb, line 22
def inspect
  return "Operator(type: #{type.inspect}, receiver: #{receiver.inspect})"
end