Sha256: a675a23f4ae01c94b4df3fe4ff696c269846a918c660ab6ab30946ae497ad43c
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
module Piglet class FieldInfixExpression # :nodoc: include FieldExpressionFunctions def initialize(operator, left_expression, right_expression) @operator, @left_expression, @right_expression = operator, left_expression, right_expression end def simple? false end def to_s "#{parenthesise(@left_expression)} #{@operator} #{parenthesise(@right_expression)}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
piglet-0.1.1 | lib/piglet/field_infix_expression.rb |
piglet-0.1.0 | lib/piglet/field_infix_expression.rb |