module Formular::Element::Modules::Container::InstanceMethods
Public Instance Methods
content()
click to toggle source
# File lib/formular/element/modules/container.rb, line 32 def content @block ? HtmlBlock.new(self, @block).call : options[:content].to_s end
end()
click to toggle source
# File lib/formular/element/modules/container.rb, line 40 def end to_html(context: :end) end
has_content?()
click to toggle source
# File lib/formular/element/modules/container.rb, line 36 def has_content? @block || options[:content] end
method_missing(method, *args, &block)
click to toggle source
Delegate missing methods to the builder
- TODO
-
@apotonick is going to do something fancy here to delegate
the builder methods rather then using this method missing.
Calls superclass method
# File lib/formular/element/modules/container.rb, line 51 def method_missing(method, *args, &block) return super unless builder builder.send(method, *args, &block) end
start()
click to toggle source
# File lib/formular/element/modules/container.rb, line 44 def start to_html(context: :start) end