class Hypertext::DSL
Constants
- TAGS
Public Class Methods
new(&block)
click to toggle source
# File lib/hypertext/dsl.rb, line 41 def initialize(&block) @ht = Hypertext.new instance_eval(&block) end
Public Instance Methods
append(content)
click to toggle source
# File lib/hypertext/dsl.rb, line 52 def append(content) @ht.append(content) end
text(content)
click to toggle source
# File lib/hypertext/dsl.rb, line 56 def text(content) @ht.text(content) end
to_a()
click to toggle source
# File lib/hypertext/dsl.rb, line 60 def to_a @ht.to_a end
to_s()
click to toggle source
# File lib/hypertext/dsl.rb, line 64 def to_s @ht.to_s end