Module: Ecfr::AttributeMethodDefinition

Overview

Provides the base functionality for attribute and metadata definition.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



54
55
56
57
58
59
60
# File 'lib/ecfr/attribute_method_definition.rb', line 54

def self.included(base)
  base.instance_eval do
    attr_reader :attributes, :options
  end

  base.extend(ClassMethods)
end

Instance Method Details

#initialize(attributes = {}, options = {}) ⇒ Object



62
63
64
65
# File 'lib/ecfr/attribute_method_definition.rb', line 62

def initialize(attributes = {}, options = {})
  @attributes = attributes
  @options = options
end