Class Texy::DomElement
In: lib/texy/dom.rb
Parent: Object

DOM element base class

Methods

broadcast   new   to_html  

Constants

CONTENT_NONE = 1
CONTENT_TEXTUAL = 2
CONTENT_BLOCK = 3

Attributes

behave_as_opening  [RW] 
content_type  [RW] 
texy  [RW]  parent Texy object

Public Class methods

[Source]

# File lib/texy/dom.rb, line 44
        def initialize(texy)
            self.texy = texy
            self.content_type = CONTENT_NONE
        end

Public Instance methods

Convert element to HTML string

[Source]

# File lib/texy/dom.rb, line 50
        def to_html
        end

Protected Instance methods

for easy Texy! DOM manipulation

[Source]

# File lib/texy/dom.rb, line 55
            def broadcast
                # build dom.elements list
                texy.dom.elements << self
            end

[Validate]