rubyx/lib/ast/function_expression.rb

11 lines
270 B
Ruby
Raw Normal View History

2014-05-05 09:02:02 +02:00
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