Sha256: 1459ceecaf3ab4091754dee30e92893a92152ac7f36f4845191e277f229c1387

Contents?: true

Size: 524 Bytes

Versions: 4

Compression:

Stored size: 524 Bytes

Contents

# Waxx Copyright (c) 2016 ePark labs Inc. & Daniel J. Fitzpatrick <dan@eparklabs.com> All rights reserved.
# Released under the Apache Version 2 License. See LICENSE.txt.

module Waxx::Html
  extend self
  attr :view

  def view
    @view ||= name.split("::").slice(1,2).inject(App){|c, n| c.const_get(n)}
  end

  def f v, *fmt
    v.f *fmt
  end

  def h v
    begin
      v.h
    rescue
      v.to_s.h
    end
  end

  def qs v
    Waxx::Http.qs(v)
  end

  def debug(str, level=3)
    Waxx.debug(str, level)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
waxx-0.2.0 lib/waxx/html.rb
waxx-0.1.4 lib/waxx/html.rb
waxx-0.1.3 lib/waxx/html.rb
waxx-0.1.2 lib/waxx/html.rb