Module: Tracksperanto::BlockInit
- Included in:
- Import::Base, Keyframe, Middleware::Base, Parameters::Parameter, Pipeline::Base, Tracker
- Defined in:
- lib/tracksperanto/block_init.rb
Overview
Implements the conventional constructor with “hash of attributes” and block support
Instance Method Summary collapse
Instance Method Details
#initialize(object_attribute_hash = {}) {|_self| ... } ⇒ Object
4 5 6 7 |
# File 'lib/tracksperanto/block_init.rb', line 4 def initialize(object_attribute_hash = {}) object_attribute_hash.map { |(k, v)| send("#{k}=", v) } yield(self) if block_given? end |