Module: ActiveBlocks::Decorator::Attributes::DefinitionsEach

Defined in:
lib/active_blocks/decorator/attributes/definitions_each.rb

Overview

skip virtual attributes

Instance Method Summary collapse

Instance Method Details

#eachObject



9
10
11
12
13
14
15
# File 'lib/active_blocks/decorator/attributes/definitions_each.rb', line 9

def each
  super() do |name, definition_class|
    next if definition_class.options[:virtual]
    yield name, definition_class
  end
  self
end