class Ditz::View

Public Class Methods

add_to_view(type, &block) click to toggle source
# File lib/view.rb, line 4
def self.add_to_view type, &block
  @views ||= {}
  @views[type] ||= []
  @views[type] << block
end
view_additions_for(type) click to toggle source
# File lib/view.rb, line 10
def self.view_additions_for type
  @views ||= {}
  @views[type] || []
end