Class: PhantomMenace::Element
- Inherits:
-
Object
- Object
- PhantomMenace::Element
- Defined in:
- lib/phantom_menace/element.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(options) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(options) ⇒ Element
Returns a new instance of Element.
7 8 9 10 11 |
# File 'lib/phantom_menace/element.rb', line 7 def initialize() @attributes = ["attrs"] @position = ["position"] @text = ["text"] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/phantom_menace/element.rb', line 3 def attributes @attributes end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
4 5 6 |
# File 'lib/phantom_menace/element.rb', line 4 def position @position end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/phantom_menace/element.rb', line 5 def text @text end |