Class: Rails::Generators::RepresenterGenerator::PropertyBuilder
- Inherits:
-
Object
- Object
- Rails::Generators::RepresenterGenerator::PropertyBuilder
- Includes:
- Enumerable
- Defined in:
- lib/generators/rails/representer_generator.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(properties) ⇒ PropertyBuilder
constructor
A new instance of PropertyBuilder.
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) .each(&block) end |