Module: Waxx::Html

Extended by:
Html
Included in:
Html
Defined in:
waxx/html.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#viewObject (readonly)

Returns the value of attribute view



6
7
8
# File 'waxx/html.rb', line 6

def view
  @view
end

Instance Method Details

#debug(str, level = 3) ⇒ Object



28
29
30
# File 'waxx/html.rb', line 28

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

#f(v, *fmt) ⇒ Object



12
13
14
# File 'waxx/html.rb', line 12

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

#h(v) ⇒ Object



16
17
18
19
20
21
22
# File 'waxx/html.rb', line 16

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

#qs(v) ⇒ Object



24
25
26
# File 'waxx/html.rb', line 24

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