Class: ArcadiaLibs
- Inherits:
-
Object
show all
- Defined in:
- ext/ae-rad/ae-rad-libs.rb
Defined Under Namespace
Classes: ArcadiaLibParams
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(_arcadia) ⇒ ArcadiaLibs
Returns a new instance of ArcadiaLibs.
66
67
68
69
|
# File 'ext/ae-rad/ae-rad-libs.rb', line 66
def initialize(_arcadia)
@arcadia = _arcadia
@@libs = Array.new
end
|
Instance Attribute Details
#arcadia ⇒ Object
Returns the value of attribute arcadia.
58
59
60
|
# File 'ext/ae-rad/ae-rad-libs.rb', line 58
def arcadia
@arcadia
end
|
Class Method Details
.check_dictionary ⇒ Object
81
82
83
84
85
86
87
88
89
90
|
# File 'ext/ae-rad/ae-rad-libs.rb', line 81
def ArcadiaLibs.check_dictionary
if !defined?(@@wrappers_for_classes)
@@wrappers_for_classes = Hash.new
@@libs.each{|_lib|
_lib.classes.each{|_class|
@@wrappers_for_classes[_class.class_wrapped]=_class
}
}
end
end
|
.copy_wrapper_of_class_to_class(_of_class, _to_class) ⇒ Object
97
98
99
100
|
# File 'ext/ae-rad/ae-rad-libs.rb', line 97
def ArcadiaLibs.copy_wrapper_of_class_to_class(_of_class, _to_class)
check_dictionary
@@wrappers_for_classes[_to_class] = @@wrappers_for_classes[_of_class]
end
|
.wrapper_class(_class) ⇒ Object
92
93
94
95
|
# File 'ext/ae-rad/ae-rad-libs.rb', line 92
def ArcadiaLibs.wrapper_class(_class)
check_dictionary
return @@wrappers_for_classes[_class]
end
|
Instance Method Details
#add_lib(arcadia_lib_params = nil) ⇒ Object
75
76
77
78
79
|
# File 'ext/ae-rad/ae-rad-libs.rb', line 75
def add_lib(arcadia_lib_params=nil)
if arcadia_lib_params
@@libs << arcadia_lib_params.classLib.new(@arcadia,arcadia_lib_params)
end
end
|
#list ⇒ Object
71
72
73
|
# File 'ext/ae-rad/ae-rad-libs.rb', line 71
def list
@@libs
end
|