module Markaby::Rails::Helpers

Public Instance Methods

capture(*args, &block) click to toggle source
Calls superclass method
# File lib/markaby/rails/current.rb, line 70
def capture(*args, &block)
  if output_buffer.kind_of?(Markaby::Builder)
    output_buffer.capture(&block)
  else
    super
  end
end
url_for(options={}) click to toggle source

allow fragments to act as strings. #url_for has a case statment in it:

case options when String

...

which essential is doing the following:

String === options

That assertion fails with Markaby::Fragments, which are essential builder/string fragments.

Calls superclass method
# File lib/markaby/rails/current.rb, line 61
def url_for(options={})
  case options
  when Markaby::Fragment
    super(options.to_s)
  else
    super
  end
end