Module: Casting::MethodConsolidator
- Defined in:
- lib/casting/method_consolidator.rb
Instance Method Summary collapse
- #methods(all = true) ⇒ Object
- #private_methods(include_super = true) ⇒ Object
- #protected_methods(include_super = true) ⇒ Object
- #public_methods(include_super = true) ⇒ Object
Instance Method Details
#methods(all = true) ⇒ Object
3 4 5 |
# File 'lib/casting/method_consolidator.rb', line 3 def methods(all = true) (super + delegated_methods(all)).uniq end |
#private_methods(include_super = true) ⇒ Object
15 16 17 |
# File 'lib/casting/method_consolidator.rb', line 15 def private_methods(include_super = true) (super + delegated_private_methods(include_super)).uniq end |
#protected_methods(include_super = true) ⇒ Object
11 12 13 |
# File 'lib/casting/method_consolidator.rb', line 11 def protected_methods(include_super = true) (super + delegated_protected_methods(include_super)).uniq end |
#public_methods(include_super = true) ⇒ Object
7 8 9 |
# File 'lib/casting/method_consolidator.rb', line 7 def public_methods(include_super = true) (super + delegated_public_methods(include_super)).uniq end |