lib/piglet/field/suffix_expression.rb in piglet-0.1.2 vs lib/piglet/field/suffix_expression.rb in piglet-0.2.0
- old
+ new
@@ -1,11 +1,13 @@
module Piglet
module Field
class SuffixExpression # :nodoc:
- include Operators
+ include Field
- def initialize(operator, expression)
+ def initialize(operator, expression, options=nil)
+ options ||= {}
@operator, @expression = operator, expression
+ @type = options[:type] || expression.type
end
def simple?
false
end
\ No newline at end of file