Skip to content

has_key give an error if the value is set. #95

Description

@neofloww

if I have a value set for a
configatron.init do |init|
init.defaults.configure_from_hash (config: {file: './config.yml'})
end
configatron.init.defaults.config.file.has_key?(:exist)

When the value exists gives an error
block in initialize': undefined method has_key?' for "./config.yml":String (NoMethodError) from gems/ruby-2.3.1/gems/configatron-4.5.1/lib/configatron/store.rb:151:in do_lookup'
from gems/ruby-2.3.1/gems/configatron-4.5.1/lib/configatron/store.rb:126:in method_missing' from gems/ruby-2.3.1/gems/configatron-4.5.1/lib/configatron/root_store.rb:54:in method_missing'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions