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.
333 334 335 336 |
# File 'lib/zarchitect/content.rb', line 333 def initialize(node) @type = node.name @html = node.to_html end |
Instance Attribute Details
#html ⇒ Object (readonly)
Returns the value of attribute html.
331 332 333 |
# File 'lib/zarchitect/content.rb', line 331 def html @html end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
331 332 333 |
# File 'lib/zarchitect/content.rb', line 331 def type @type end |