Class: Markaby::Rails::RailsBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/markaby/rails/rails_builder.rb

Direct Known Subclasses

Builder

Defined Under Namespace

Classes: FormHelperProxy

Constant Summary

Constants inherited from Builder

Builder::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Builder

#output_helpers, #tagset

Instance Method Summary collapse

Methods inherited from Builder

#capture, get, #helper=, ignore_helpers, ignored_helpers, #initialize, #locals=, restore_defaults!, set, #tag!, #text, #to_s

Methods included from BuilderTags

#head, #html_tag, #xhtml_frameset, #xhtml_strict, #xhtml_transitional

Constructor Details

This class inherits a constructor from Markaby::Builder

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Markaby::Builder

Instance Method Details

#form_for(*args, &block) ⇒ Object



4
5
6
7
8
# File 'lib/markaby/rails/rails_builder.rb', line 4

def form_for(*args, &block)
  @template.form_for(*args) do |__form_for_variable|
    yield(FormHelperProxy.new(self, __form_for_variable))
  end
end