Class: Torrone::Config
- Inherits:
-
Object
- Object
- Torrone::Config
- Defined in:
- lib/torrone/config.rb
Defined Under Namespace
Classes: Configuration
Class Attribute Summary collapse
-
.image_dir ⇒ Object
readonly
Returns the value of attribute image_dir.
-
.jar_dir ⇒ Object
readonly
Returns the value of attribute jar_dir.
-
.jasper_dir ⇒ Object
readonly
Returns the value of attribute jasper_dir.
-
.locale ⇒ Object
readonly
Returns the value of attribute locale.
Class Method Summary collapse
Class Attribute Details
.image_dir ⇒ Object (readonly)
Returns the value of attribute image_dir.
6 7 8 |
# File 'lib/torrone/config.rb', line 6 def image_dir @image_dir end |
.jar_dir ⇒ Object (readonly)
Returns the value of attribute jar_dir.
6 7 8 |
# File 'lib/torrone/config.rb', line 6 def jar_dir @jar_dir end |
.jasper_dir ⇒ Object (readonly)
Returns the value of attribute jasper_dir.
6 7 8 |
# File 'lib/torrone/config.rb', line 6 def jasper_dir @jasper_dir end |
.locale ⇒ Object (readonly)
Returns the value of attribute locale.
6 7 8 |
# File 'lib/torrone/config.rb', line 6 def locale @locale end |
Class Method Details
.configure {|conf| ... } ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/torrone/config.rb', line 9 def self.configure conf = Configuration.new yield conf @jar_dir = conf.jar_dir if conf.jar_dir @jasper_dir = conf.jasper_dir if conf.jasper_dir @image_dir = conf.image_dir if conf.image_dir @locale = conf.locale if conf.locale JARLoader.load end |