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