A toy dynamic programming language written in Ruby
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

branch.rb 259B

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