class Rack::App::FrontEnd::Helpers::HtmlDsl::Block
Public Class Methods
new(&block)
click to toggle source
# File lib/rack/app/front_end/helpers/html_dsl/block.rb, line 3 def initialize(&block) @html = '' instance_exec(&block) end
Public Instance Methods
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/rack/app/front_end/helpers/html_dsl/block.rb, line 12 def method_missing(method_name, *args, &block) @html << ::Rack::App::FrontEnd::Helpers::HtmlDsl.build(method_name, *args, &block) rescue ::Rack::App::FrontEnd::Helpers::HtmlDsl::UnImplementedError super end
to_s()
click to toggle source
# File lib/rack/app/front_end/helpers/html_dsl/block.rb, line 8 def to_s @html end