Class: Rad
- Inherits:
-
ArcadiaExt
- Object
- ArcadiaExt
- Rad
- Defined in:
- ext/ae-rad/ae-rad.rb
Instance Attribute Summary collapse
-
#inspector ⇒ Object
readonly
Returns the value of attribute inspector.
-
#libs ⇒ Object
readonly
Returns the value of attribute libs.
-
#palette ⇒ Object
readonly
Returns the value of attribute palette.
Instance Method Summary collapse
Instance Attribute Details
#inspector ⇒ Object (readonly)
Returns the value of attribute inspector.
13 14 15 |
# File 'ext/ae-rad/ae-rad.rb', line 13 def inspector @inspector end |
#libs ⇒ Object (readonly)
Returns the value of attribute libs.
11 12 13 |
# File 'ext/ae-rad/ae-rad.rb', line 11 def libs @libs end |
#palette ⇒ Object (readonly)
Returns the value of attribute palette.
12 13 14 |
# File 'ext/ae-rad/ae-rad.rb', line 12 def palette @palette end |
Instance Method Details
#load_libs ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'ext/ae-rad/ae-rad.rb', line 27 def load_libs @libs = ArcadiaLibs.new(self) libs = conf('libraries').split(',') libs.each{|lib| if lib begin require conf('libraries.'+lib+'.source') @libs.add_lib( ArcadiaLibs::ArcadiaLibParams.new( conf('libraries.'+lib+'.name'), conf('libraries.'+lib+'.source'), conf('libraries.'+lib+'.require'), eval(conf('libraries.'+lib+'.collection.class'))) ) rescue Exception msg = "Loading lib "+'"'+lib+'"'+" ("+$!.class.to_s+") "+" : "+$! + " at : "+$@.to_s if Tk.('icon' => 'error', 'type' => 'okcancel', 'title' => '(Rad) Libs', 'message' => msg) == 'cancel' raise exit else Tk.update end end end } end |
#on_build(_event) ⇒ Object
14 15 16 |
# File 'ext/ae-rad/ae-rad.rb', line 14 def on_build(_event) load_libs end |