Class: ContentNode

Inherits:
Object
  • Object
show all
Defined in:
lib/zarchitect/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#htmlObject (readonly)

Returns the value of attribute html.



331
332
333
# File 'lib/zarchitect/content.rb', line 331

def html
  @html
end

#typeObject (readonly)

Returns the value of attribute type.



331
332
333
# File 'lib/zarchitect/content.rb', line 331

def type
  @type
end