Class: Html

Inherits:
DomRender
  • Object
show all
Defined in:
lib/humble_rpi-plugin-mtp.rb

Instance Method Summary collapse

Instance Method Details

#b(x) ⇒ Object Also known as: strong



17
18
19
# File 'lib/humble_rpi-plugin-mtp.rb', line 17

def b(x)
  [:bold_on, render_all(x), :bold_off]
end

#br(x) ⇒ Object



23
24
25
# File 'lib/humble_rpi-plugin-mtp.rb', line 23

def br(x)
  :feed
end

#p(x) ⇒ Object



13
14
15
# File 'lib/humble_rpi-plugin-mtp.rb', line 13

def p(x)
  render_all x
end

#strike(x) ⇒ Object



27
28
29
# File 'lib/humble_rpi-plugin-mtp.rb', line 27

def strike(x)
  [:strike_on, render_all(x), :strike_off]
end

#u(x) ⇒ Object



31
32
33
# File 'lib/humble_rpi-plugin-mtp.rb', line 31

def u(x)
  [:underline_on, render_all(x), :underline_off]
end