Class: CrossArray
- Inherits:
-
Object
- Object
- CrossArray
- Defined in:
- app/models/cross_array.rb
Instance Attribute Summary collapse
-
#cnt ⇒ Object
attr_accessor :keynames.
-
#keyvalue ⇒ Object
attr_accessor :keynames.
-
#name ⇒ Object
attr_accessor :keynames.
Instance Method Summary collapse
-
#initialize(id) ⇒ CrossArray
constructor
A new instance of CrossArray.
Constructor Details
#initialize(id) ⇒ CrossArray
Returns a new instance of CrossArray.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/models/cross_array.rb', line 7 def initialize(id) #@keynames = Array.new #@resulttree=PathNode.new #@resulttree.path="/" #@resultids = Array.new #@nodes=Array.new #@qsetid=qsetid #puts "aa" @id=id @name=Array.new #@name.push(name) #puts @name @keyvalue=Array.new @cnt=Array.new end |
Instance Attribute Details
#cnt ⇒ Object
attr_accessor :keynames
5 6 7 |
# File 'app/models/cross_array.rb', line 5 def cnt @cnt end |
#keyvalue ⇒ Object
attr_accessor :keynames
5 6 7 |
# File 'app/models/cross_array.rb', line 5 def keyvalue @keyvalue end |
#name ⇒ Object
attr_accessor :keynames
5 6 7 |
# File 'app/models/cross_array.rb', line 5 def name @name end |