lib/hypertext/dsl.rb in hypertext-0.0.3 vs lib/hypertext/dsl.rb in hypertext-0.0.4
- old
+ new
@@ -47,11 +47,19 @@
define_method(tag_name) do |attributes = {}, &block|
@ht.tag(tag_name, attributes, &block)
end
end
+ def append(content)
+ @ht.append(content)
+ end
+
def text(content)
@ht.text(content)
+ end
+
+ def to_a
+ @ht.to_a
end
def to_s
@ht.to_s
end