Module: Scintillation::View
- Defined in:
- lib/scintillation/view.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/scintillation/view.rb', line 4 def method_missing(method, *args, &block) case method.to_s when /^has_((\w+)_)?msgs\?$/ [$2] && ![$2].empty? when /^((\w+)_)?msgs$/ .delete($2) || [] else super end end |