Module: FunWith::Configurations::Configurable

Defined in:
lib/fun_with/configurations/configurable.rb

Instance Method Summary collapse

Instance Method Details

#config {|@fwc_config| ... } ⇒ Object

Yields:

  • (@fwc_config)


11
12
13
14
# File 'lib/fun_with/configurations/configurable.rb', line 11

def config( &block )
  yield @fwc_config if block_given?
  @fwc_config
end

#config=(config) ⇒ Object

Replaces existing configuration



7
8
9
# File 'lib/fun_with/configurations/configurable.rb', line 7

def config=( config )
  @fwc_config = config
end

#fwc_configuration_fileObject



16
17
18
# File 'lib/fun_with/configurations/configurable.rb', line 16

def fwc_configuration_file
  @fwc_configuration_file
end

#fwc_configuration_file=(file) ⇒ Object



20
21
22
# File 'lib/fun_with/configurations/configurable.rb', line 20

def fwc_configuration_file=( file )
  @fwc_configuration_file = file.fwf_filepath
end