rubyx/lib/ast/function_expression.rb
2014-05-05 10:02:02 +03:00

11 lines
270 B
Ruby

module Ast
class FunctionExpression < Expression
attr_reader :name, :params, :block
def initialize name, params, block
@name, @params, @block = name, params, block
end
def == other
compare other , [:name, :params, :block]
end
end
end