Class: Sablon::Content::HTML
- Inherits:
-
Struct
- Object
- Struct
- Sablon::Content::HTML
show all
- Includes:
- Sablon::Content
- Defined in:
- lib/sablon/content.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
make, register, remove, wrap
Constructor Details
#initialize(html) ⇒ HTML
Returns a new instance of HTML.
85
86
87
88
89
|
# File 'lib/sablon/content.rb', line 85
def initialize(html)
converter = HTMLConverter.new
word_ml = Sablon.content(:word_ml, converter.process(html))
super word_ml
end
|
Instance Attribute Details
#word_ml ⇒ Object
Returns the value of attribute word_ml
80
81
82
|
# File 'lib/sablon/content.rb', line 80
def word_ml
@word_ml
end
|
Class Method Details
.id ⇒ Object
82
|
# File 'lib/sablon/content.rb', line 82
def self.id; :html end
|
.wraps?(value) ⇒ Boolean
83
|
# File 'lib/sablon/content.rb', line 83
def self.wraps?(value) false end
|
Instance Method Details
#append_to(*args) ⇒ Object
91
92
93
|
# File 'lib/sablon/content.rb', line 91
def append_to(*args)
word_ml.append_to(*args)
end
|