Module: Super::Schema::Common
Instance Method Summary collapse
Instance Method Details
#each_attribute ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/super/schema/common.rb', line 16 def each_attribute if block_given? @fields.each do |key, value| yield(key, value) end end enum_for(:each_attribute) end |
#each_attribute_name ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/super/schema/common.rb', line 6 def each_attribute_name if block_given? @fields.keys.each do |key| yield(key) end end enum_for(:each_attribute_name) end |