Sha256: c5c6a55b6e3c141739c846c895df94a63b19752bb6f08a4b1741edd9469ab049

Contents?: true

Size: 228 Bytes

Versions: 15

Compression:

Stored size: 228 Bytes

Contents

module Nib::Options
  module_function

  def config
    @config ||= YAML.load_file("#{Nib::GEM_ROOT}/config/options.yml")
  end

  def options_for(type, name)
    config.select { |option| option[type].include?(name) }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nib-2.0.2 lib/nib/options.rb
nib-2.0.1 lib/nib/options.rb
nib-2.0.0 lib/nib/options.rb
nib-1.7.0 lib/nib/options.rb
nib-1.6.0 lib/nib/options.rb
nib-1.5.1 lib/nib/options.rb
nib-1.5.0 lib/nib/options.rb
nib-1.4.2 lib/nib/options.rb
nib-1.4.1 lib/nib/options.rb
nib-1.4.0 lib/nib/options.rb
nib-1.3.0 lib/nib/options.rb
nib-1.2.2 lib/nib/options.rb
nib-1.2.1 lib/nib/options.rb
nib-1.2.0 lib/nib/options.rb
nib-1.1.0 lib/nib/options.rb