11 lines
270 B
Ruby
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 |