lib/interface_builder/view_builder.rb in rails-ext-0.3.3 vs lib/interface_builder/view_builder.rb in rails-ext-0.3.4

- old
+ new

@@ -1,8 +1,10 @@ module InterfaceBuilder class ViewBuilder + def self.generate_helper_methods methods + methods.each do |folder, templates| templates.each do |template| code = <<END\ def #{template} *args, &block render_haml_builder "#{folder}", "#{template}", *args, &block @@ -10,9 +12,10 @@ END eval code, binding, __FILE__, __LINE__ end end + end attr_reader :template def initialize template \ No newline at end of file