Class: Torrone::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/torrone/config.rb

Defined Under Namespace

Classes: Configuration

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.image_dirObject (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_dirObject (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_dirObject (readonly)

Returns the value of attribute jasper_dir.



6
7
8
# File 'lib/torrone/config.rb', line 6

def jasper_dir
  @jasper_dir
end

.localeObject (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

Yields:

  • (conf)


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