Module: AttributesMapper::HasAttributes::ConfigurationMethods

Defined in:
lib/attributes-mapper/has_attributes.rb

Overview

rubocop:enable Metrics/BlockLength

Instance Method Summary collapse

Instance Method Details

#configurationObject



70
71
72
# File 'lib/attributes-mapper/has_attributes.rb', line 70

def configuration
  @configuration ||= Configuration.new
end

#configure {|configuration| ... } ⇒ Object

Yields:



74
75
76
77
# File 'lib/attributes-mapper/has_attributes.rb', line 74

def configure
  yield configuration
  define_attribute_methods
end