class Estreet::UnaryExpression
Public Class Methods
new(operator, argument)
click to toggle source
# File lib/estreet/unary_expression.rb, line 3 def initialize(operator, argument) Estreet.assert_valid_operator(UNARY_OPERATORS, operator) @operator = operator @argument = argument.to_expression end
Public Instance Methods
attributes()
click to toggle source
Calls superclass method
# File lib/estreet/unary_expression.rb, line 10 def attributes super.merge( operator: @operator, argument: @argument, prefix: true # TODO: when is it false? ) end