Class: SportDb::Import::Configuration

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#langObject

Returns the value of attribute lang.



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

def lang
  @lang
end

Class Method Details

.configure {|config| ... } ⇒ Object

lets you use

SportDb.configure do |config|
   config.lang = 'it'
end

Yields:



18
# File 'lib/sports/config.rb', line 18

def self.configure()  yield( config ); end