class Config::Sources::HashSource
Attributes
Public Class Methods
Source
# File lib/config/sources/hash_source.rb, line 6 def initialize(hash) @hash = hash end
Public Instance Methods
Source
# File lib/config/sources/hash_source.rb, line 11 def load hash.is_a?(Hash) ? hash : {} end
returns hash that was passed in to initialize