Class: Installer
- Inherits:
-
Object
- Object
- Installer
- Defined in:
- lib/jruby_art/installer.rb
Instance Attribute Summary collapse
-
#processing_ide ⇒ Object
readonly
Returns the value of attribute processing_ide.
Instance Method Summary collapse
-
#initialize ⇒ Installer
constructor
A new instance of Installer.
- #install ⇒ Object
Constructor Details
#initialize ⇒ Installer
Returns a new instance of Installer.
8 9 10 |
# File 'lib/jruby_art/installer.rb', line 8 def initialize @processing_ide = ProcessingIde.new end |
Instance Attribute Details
#processing_ide ⇒ Object (readonly)
Returns the value of attribute processing_ide.
7 8 9 |
# File 'lib/jruby_art/installer.rb', line 7 def processing_ide @processing_ide end |
Instance Method Details
#install ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/jruby_art/installer.rb', line 12 def install config = if processing_ide.installed? Config.new( 'processing_ide' => true, 'library_path' => processing_ide.sketchbook_path ) else Config.new('processing_ide' => false) end config.write_to_file end |