# File lib/view.rb, line 4 def self.add_to_view type, &block @views ||= {} @views[type] ||= [] @views[type] << block end