Sha256: 46dc335bd0ea5fdc550ca1aaf7b5e0f8b04b4d30d9b0b0f891a568762b45e114

Contents?: true

Size: 715 Bytes

Versions: 5

Compression:

Stored size: 715 Bytes

Contents

# Should be included via extend
#
# extend Mixin::ConfigOptions
#

module Nucleon
module Mixin
module ConfigOptions
  
  #-----------------------------------------------------------------------------
  # Configuration options interface
  
  def contexts(contexts = [], hierarchy = [])
    return Config::Options.contexts(contexts, hierarchy)  
  end
  
  #---
  
  def get_options(contexts, force = true)
    return Config::Options.get(contexts, force)  
  end
  
  #---
  
  def set_options(contexts, options, force = true)
    Config::Options.set(contexts, options, force)
    return self  
  end
  
  #---
  
  def clear_options(contexts)
    Config::Options.clear(contexts)
    return self  
  end
end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nucleon-0.1.5 lib/core/mixin/config/options.rb
nucleon-0.1.4 lib/core/mixin/config/options.rb
nucleon-0.1.3 lib/core/mixin/config/options.rb
nucleon-0.1.2 lib/core/mixin/config/options.rb
nucleon-0.1.1 lib/core/mixin/config/options.rb