Class: ListsConstant::Lookups::Class

Inherits:
Module
  • Object
show all
Defined in:
lib/lists_constant/lookups/class.rb

Instance Method Summary collapse

Constructor Details

#initialize(field, values) ⇒ Class

Returns a new instance of Class.



7
8
9
10
11
12
# File 'lib/lists_constant/lookups/class.rb', line 7

def initialize field, values
  @field = field
  @values = values

  super()
end

Instance Method Details

#extended(base) ⇒ Object



14
15
16
17
18
19
# File 'lib/lists_constant/lookups/class.rb', line 14

def extended base
  add_lookup_query_method base
  add_localized_hash_method base
  add_localization_method base
  add_inverted_hash_method base
end