class Ettin::Sources::HashSource
Config data from a ruby hash
Attributes
hash[R]
Public Class Methods
handles?(target)
click to toggle source
# File lib/ettin/sources/hash_source.rb, line 12 def self.handles?(target) target.is_a? Hash end
new(hash)
click to toggle source
# File lib/ettin/sources/hash_source.rb, line 16 def initialize(hash) @hash = hash.is_a?(Hash) ? hash : {} end
Public Instance Methods
load()
click to toggle source
# File lib/ettin/sources/hash_source.rb, line 20 def load hash end