Class: ContentNode
- Inherits:
-
Object
- Object
- ContentNode
- Defined in:
- lib/zarchitect/content.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(node) ⇒ ContentNode
constructor
A new instance of ContentNode.
Constructor Details
#initialize(node) ⇒ ContentNode
Returns a new instance of ContentNode.
334 335 336 337 |
# File 'lib/zarchitect/content.rb', line 334 def initialize(node) @type = node.name @html = node.to_html end |
Instance Attribute Details
#html ⇒ Object (readonly)
Returns the value of attribute html.
332 333 334 |
# File 'lib/zarchitect/content.rb', line 332 def html @html end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
332 333 334 |
# File 'lib/zarchitect/content.rb', line 332 def type @type end |