Module: Wirble::Shortcuts
- Defined in:
- lib/wirble.rb
Overview
Convenient shortcut methods.
Instance Method Summary collapse
-
#po(o) ⇒ Object
Print object methods, sorted by name.
-
#poc(o) ⇒ Object
Print object constants, sorted by name.
Instance Method Details
#po(o) ⇒ Object
Print object methods, sorted by name. (excluding methods that exist in the class Object) .
461 462 463 |
# File 'lib/wirble.rb', line 461 def po(o) o.methods.sort - Object.methods end |
#poc(o) ⇒ Object
Print object constants, sorted by name.
468 469 470 |
# File 'lib/wirble.rb', line 468 def poc(o) o.constants.sort end |