Class: Element
- Inherits:
-
Object
- Object
- Element
- Defined in:
- lib/Element.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#coverage ⇒ Object
Returns the value of attribute coverage.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, isaentityorcoverage, parent, type) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(name, isaentityorcoverage, parent, type) ⇒ Element
Returns a new instance of Element.
4 5 6 7 8 9 10 11 |
# File 'lib/Element.rb', line 4 def initialize(name,isaentityorcoverage,parent,type) @coverage = isaentityorcoverage @name = name @children = [] @parent = parent @fields = [] @type = type end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
2 3 4 |
# File 'lib/Element.rb', line 2 def children @children end |
#coverage ⇒ Object
Returns the value of attribute coverage.
2 3 4 |
# File 'lib/Element.rb', line 2 def coverage @coverage end |
#fields ⇒ Object
Returns the value of attribute fields.
2 3 4 |
# File 'lib/Element.rb', line 2 def fields @fields end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/Element.rb', line 2 def name @name end |
#parent ⇒ Object
Returns the value of attribute parent.
2 3 4 |
# File 'lib/Element.rb', line 2 def parent @parent end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/Element.rb', line 2 def type @type end |