Class: Rasper::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rasper/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.



4
5
6
# File 'lib/rasper/config.rb', line 4

def image_dir
  @image_dir
end

.jar_dirObject (readonly)

Returns the value of attribute jar_dir.



4
5
6
# File 'lib/rasper/config.rb', line 4

def jar_dir
  @jar_dir
end

.jasper_dirObject (readonly)

Returns the value of attribute jasper_dir.



4
5
6
# File 'lib/rasper/config.rb', line 4

def jasper_dir
  @jasper_dir
end

Class Method Details

.configure {|conf| ... } ⇒ Object

Yields:

  • (conf)


7
8
9
10
11
12
13
# File 'lib/rasper/config.rb', line 7

def self.configure
  conf = Configuration.new
  yield conf
  @jar_dir = conf.jar_dir
  @jasper_dir = conf.jasper_dir
  @image_dir = conf.image_dir
end