Class: Element

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#childrenObject

Returns the value of attribute children.



2
3
4
# File 'lib/Element.rb', line 2

def children
  @children
end

#coverageObject

Returns the value of attribute coverage.



2
3
4
# File 'lib/Element.rb', line 2

def coverage
  @coverage
end

#fieldsObject

Returns the value of attribute fields.



2
3
4
# File 'lib/Element.rb', line 2

def fields
  @fields
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/Element.rb', line 2

def name
  @name
end

#parentObject

Returns the value of attribute parent.



2
3
4
# File 'lib/Element.rb', line 2

def parent
  @parent
end

#typeObject

Returns the value of attribute type.



2
3
4
# File 'lib/Element.rb', line 2

def type
  @type
end