lib/tracksperanto/block_init.rb in tracksperanto-2.8.6 vs lib/tracksperanto/block_init.rb in tracksperanto-2.9.0
- old
+ new
@@ -1,4 +1,5 @@
+# -*- encoding : utf-8 -*-
# Implements the conventional constructor with "hash of attributes" and block support
module Tracksperanto::BlockInit
def initialize(object_attribute_hash = {})
object_attribute_hash.map { |(k, v)| send("#{k}=", v) }
yield(self) if block_given?