A toy dynamic programming language written in Ruby
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

property_declaration.rb 279B

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