Class: Ditz::View
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.add_to_view(type, &block) ⇒ Object
4 5 6 7 8 |
# File 'lib/view.rb', line 4 def self.add_to_view type, &block @views ||= {} @views[type] ||= [] @views[type] << block end |
.view_additions_for(type) ⇒ Object
10 11 12 13 |
# File 'lib/view.rb', line 10 def self.view_additions_for type @views ||= {} @views[type] || [] end |