Sha256: 8a6eb11ebdb8c4fa708c86e1aacb9cb76882b56768b1cb22e49a3248fdc8144e

Contents?: true

Size: 726 Bytes

Versions: 17

Compression:

Stored size: 726 Bytes

Contents

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
nucleon-0.2.2 lib/core/mixin/config/options.rb
nucleon-0.2.1 lib/core/mixin/config/options.rb
nucleon-0.2.0 lib/core/mixin/config/options.rb
nucleon-0.1.19 lib/core/mixin/config/options.rb
nucleon-0.1.18 lib/core/mixin/config/options.rb
nucleon-0.1.17 lib/core/mixin/config/options.rb
nucleon-0.1.16 lib/core/mixin/config/options.rb
nucleon-0.1.15 lib/core/mixin/config/options.rb
nucleon-0.1.14 lib/core/mixin/config/options.rb
nucleon-0.1.13 lib/core/mixin/config/options.rb
nucleon-0.1.12 lib/core/mixin/config/options.rb
nucleon-0.1.11 lib/core/mixin/config/options.rb
nucleon-0.1.10 lib/core/mixin/config/options.rb
nucleon-0.1.9 lib/core/mixin/config/options.rb
nucleon-0.1.8 lib/core/mixin/config/options.rb
nucleon-0.1.7 lib/core/mixin/config/options.rb
nucleon-0.1.6 lib/core/mixin/config/options.rb