code_junkie

RDoc : Change name of 'Atttributes:' section in ri-documentation

Nov 12th, 2011
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class EmotionalObject
  2. def self.mood( name, *details )
  3. define_method(name) do
  4. # ...
  5. end
  6. end
  7.  
  8. mood :happy, #...
  9. mood :sad, #...
  10. mood :ebuillent, #...
  11. #...
  12. end
Add Comment
Please, Sign In to add comment