class Librarian::Config::HashSource
Attributes
name[RW]
raw[RW]
Public Class Methods
new(adapter_name, options = { })
click to toggle source
Calls superclass method
# File lib/librarian/config/hash_source.rb, line 10 def initialize(adapter_name, options = { }) super self.name = options.delete(:name) or raise ArgumentError, "must provide name" self.raw = options.delete(:raw) or raise ArgumentError, "must provide raw" end
Public Instance Methods
to_s()
click to toggle source
# File lib/librarian/config/hash_source.rb, line 17 def to_s name end
Private Instance Methods
load()
click to toggle source
# File lib/librarian/config/hash_source.rb, line 23 def load translate_raw_to_config(raw) end
save(config)
click to toggle source
# File lib/librarian/config/hash_source.rb, line 27 def save(config) raise Error, "nonsense!" end