Module: TagOptions

Defined in:
lib/tag_options.rb,
lib/tag_options/hash.rb,
lib/tag_options/error.rb,
lib/tag_options/hash_at.rb,
lib/tag_options/version.rb,
lib/tag_options/resolver.rb,
lib/tag_options/convert_key.rb,
lib/tag_options/configuration.rb,
lib/tag_options/resolvers/style.rb,
lib/tag_options/resolvers/default.rb,
lib/tag_options/errors/not_hash_error.rb,
lib/tag_options/errors/resolver_error.rb

Defined Under Namespace

Modules: ConvertKey, Errors, Resolvers Classes: Configuration, Error, Hash, HashAt, Resolver

Constant Summary collapse

VERSION =
"1.4.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



9
10
11
# File 'lib/tag_options/configuration.rb', line 9

def configuration
  @configuration ||= TagOptions::Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



13
14
15
# File 'lib/tag_options/configuration.rb', line 13

def configure
  yield(configuration)
end

.Hash(hash = {}) ⇒ Object



5
6
7
# File 'lib/tag_options.rb', line 5

def self.Hash(hash = {})
  TagOptions::Hash.new(hash)
end