A toy dynamic programming language written in Ruby
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

property.rb 233B

123456789101112
  1. class AST::Property
  2. attr_reader :object, :name
  3. def initialize(object, name)
  4. @object = object
  5. @name = name
  6. end
  7. def ==(other)
  8. other.is_a?(AST::Property) && other.object == @object && other.name == @name
  9. end
  10. end