Class: Rails::Generators::RepresenterGenerator::PropertyBuilder

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/generators/rails/representer_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(properties) ⇒ PropertyBuilder

Returns a new instance of PropertyBuilder.



34
35
36
# File 'lib/generators/rails/representer_generator.rb', line 34

def initialize(properties)
  @raw = properties
end

Instance Method Details

#each(&block) ⇒ Object



38
39
40
# File 'lib/generators/rails/representer_generator.rb', line 38

def each(&block)
  properties_with_options.each(&block)
end