Sha256: b3babfabb20420ad464990ed8291cbc68273eba216b1fd53e054e5c328168be8

Contents?: true

Size: 267 Bytes

Versions: 1

Compression:

Stored size: 267 Bytes

Contents

module Nib::Options
  module_function

  def config
    return @config if @config

    @config = Psych.flexible_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

1 entries across 1 versions & 1 rubygems

Version Path
nib-2.1.1 lib/nib/options.rb