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) .
463 464 465 |
# File 'lib/wirble.rb', line 463 def po(o) o.methods.sort - Object.methods end |
#poc(o) ⇒ Object
Print object constants, sorted by name.
470 471 472 |
# File 'lib/wirble.rb', line 470 def poc(o) o.constants.sort end |