class Forme::Template::Form
Public Class Methods
new(form, scope)
click to toggle source
# File lib/forme/template.rb 8 def initialize(form, scope) 9 @form = form 10 @scope = scope 11 end
Public Instance Methods
emit(tag)
click to toggle source
Serialize the tag and inject it into the output.
# File lib/forme/template.rb 42 def emit(tag) 43 return unless output = output() 44 output << tag 45 end
method_missing(*a, &block)
click to toggle source
Delegate calls by default to the wrapped form
# File lib/forme/template.rb 14 def method_missing(*a, &block) 15 @form.public_send(*a, &block) 16 end
Private Instance Methods
output()
click to toggle source
# File lib/forme/template.rb 49 def output 50 @scope.instance_variable_get(:@_out_buf) 51 end