Class: CrossArray

Inherits:
Object
  • Object
show all
Defined in:
app/models/cross_array.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cntObject

attr_accessor :keynames



5
6
7
# File 'app/models/cross_array.rb', line 5

def cnt
  @cnt
end

#keyvalueObject

attr_accessor :keynames



5
6
7
# File 'app/models/cross_array.rb', line 5

def keyvalue
  @keyvalue
end

#nameObject

attr_accessor :keynames



5
6
7
# File 'app/models/cross_array.rb', line 5

def name
  @name
end