Class: Hyalite::ElementObject
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#props ⇒ Object
readonly
Returns the value of attribute props.
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, key, ref, owner, props) ⇒ ElementObject
constructor
A new instance of ElementObject.
- #inspect ⇒ Object
Constructor Details
#initialize(type, key, ref, owner, props) ⇒ ElementObject
Returns a new instance of ElementObject.
6 7 8 9 10 11 12 |
# File 'lib/hyalite/element.rb', line 6 def initialize(type, key, ref, owner, props) @type = type @key = key @ref = ref @owner = owner @props = props end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/hyalite/element.rb', line 3 def key @key end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
3 4 5 |
# File 'lib/hyalite/element.rb', line 3 def owner @owner end |
#parent ⇒ Object
Returns the value of attribute parent.
4 5 6 |
# File 'lib/hyalite/element.rb', line 4 def parent @parent end |
#props ⇒ Object (readonly)
Returns the value of attribute props.
3 4 5 |
# File 'lib/hyalite/element.rb', line 3 def props @props end |
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
3 4 5 |
# File 'lib/hyalite/element.rb', line 3 def ref @ref end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/hyalite/element.rb', line 3 def type @type end |
Instance Method Details
#inspect ⇒ Object
14 15 16 |
# File 'lib/hyalite/element.rb', line 14 def inspect "<#{type} #{props && props.inspect} />" end |