Module: FanartTv::Configurable

Included in:
FanartTv
Defined in:
lib/fanart_tv/configuration.rb

Instance Method Summary collapse

Instance Method Details

#configObject



42
43
44
# File 'lib/fanart_tv/configuration.rb', line 42

def config
  @config
end

#configure {|@config ||= FanartTv::Configuration.new| ... } ⇒ Object

Yields:



37
38
39
40
# File 'lib/fanart_tv/configuration.rb', line 37

def configure
  raise "Configuration missing" unless block_given?
  yield @config ||= FanartTv::Configuration.new
end