class Environmentor::Mappers::Base
Public Class Methods
new(**opts)
click to toggle source
# File lib/environmentor/mappers/base.rb, line 21 def initialize(**opts) @opts = opts end
opts_from_mappers_hash(h)
click to toggle source
# File lib/environmentor/mappers/base.rb, line 13 def self.opts_from_mappers_hash(h) if respond_to?(:to_sym) h[to_sym] || {} else {} end end
singleton_method_added(n)
click to toggle source
Calls superclass method
# File lib/environmentor/mappers/base.rb, line 5 def self.singleton_method_added(n) # Yuck, sorry. if n == :to_sym Environmentor::Mappers.register(to_sym, self) end super end
Public Instance Methods
human_attr_location(attr)
click to toggle source
# File lib/environmentor/mappers/base.rb, line 34 def human_attr_location(attr) raise NotImplementedError end
human_description()
click to toggle source
# File lib/environmentor/mappers/base.rb, line 30 def human_description raise NotImplementedError end
value_for_attribute(attr, **opts)
click to toggle source
:nocov:
# File lib/environmentor/mappers/base.rb, line 26 def value_for_attribute(attr, **opts) raise NotImplementedError end