koan_01_1.rb 337 B

1234567891011121314
  1. # The method being called on SomeClass is called 'attribute'. Next, a method
  2. # called 'a?' is called. We'll just go ahead and define those two methods.
  3. #
  4. # The 'self.' in front of 'attribute' defines it as a "class" method, whereas
  5. # 'a?' is an "instance" method.
  6. class SomeClass
  7. def self.attribute
  8. end
  9. def a?
  10. false
  11. end
  12. end