Sha256: f91c246f5447b658a046ad4ccac67c07995826edabf21d06be3cda5ef6e739c8
Contents?: true
Size: 869 Bytes
Versions: 146
Compression:
Stored size: 869 Bytes
Contents
module Arel module Nodes class InfixOperation < Binary include Arel::Expressions include Arel::Predications include Arel::OrderPredications include Arel::AliasPredication include Arel::Math attr_reader :operator def initialize operator, left, right super(left, right) @operator = operator end end class Multiplication < InfixOperation def initialize left, right super(:*, left, right) end end class Division < InfixOperation def initialize left, right super(:/, left, right) end end class Addition < InfixOperation def initialize left, right super(:+, left, right) end end class Subtraction < InfixOperation def initialize left, right super(:-, left, right) end end end end
Version data entries
146 entries across 125 versions & 20 rubygems