Public Class methods
new(form, scope)
[show source]
# File lib/forme/template.rb 8 def initialize(form, scope) 9 @form = form 10 @scope = scope 11 end
Public Instance methods
emit(tag)
Serialize the tag and inject it into the output.
[show source]
# File lib/forme/template.rb 42 def emit(tag) 43 return unless output = output() 44 output << tag 45 end
method_missing(*a, &block)
Delegate calls by default to the wrapped form
[show source]
# File lib/forme/template.rb 14 def method_missing(*a, &block) 15 @form.public_send(*a, &block) 16 end