Class: Ditz::View

Inherits:
Object show all
Defined in:
lib/ditz/view.rb

Direct Known Subclasses

BaetleView, HtmlView, ScreenView

Class Method Summary collapse

Class Method Details

.add_to_view(type, &block) ⇒ Object



4
5
6
7
8
# File 'lib/ditz/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/ditz/view.rb', line 10

def self.view_additions_for type
  @views ||= {}
  @views[type] || []
end