lib/lotus/view/escape.rb
def method_added(method_name)
        unless autoescape_methods[method_name]
          prepend Module.new {
            module_eval %{
              def #{ method_name }(*args, &blk); ::Lotus::View::Escape.html super; end
            }
          }

          autoescape_methods[method_name] = true
        end
      end
# Wraps concrete view methods with escape logic.
#
# @since 0.4.0
# @api private
Wraps concrete view methods with escape logic.
Wraps concrete view methods with escape logic .
def method_added(method_name)
        unless autoescape_methods[method_name]
          prepend Module.new {
            module_eval %{
              def #{ method_name }(*args, &blk); ::Lotus::View::Escape.html super; end
            }
          }
          autoescape_methods[method_name] = true
        end
      end
def method_added ( method_name ) unless autoescape_methods [ method_name ] prepend Module . new { module_eval %{
              def #{ method_name }(*args, &blk); ::Lotus::View::Escape.html super; end
            } } autoescape_methods [ method_name ] = true end end
Wraps concrete view methods with escape logic.
Wraps concrete view methods with escape logic .
method_name
since
None
api
None