Sha256: 638ab4dca0cea938ec5a5b51b4415dd07c2d14bfca1ab7a6c7cfae146e569bf1
Contents?: true
Size: 359 Bytes
Versions: 18
Compression:
Stored size: 359 Bytes
Contents
# -*- encoding : utf-8 -*- # Implements the conventional constructor with "hash of attributes" and block support module Tracksperanto::BlockInit def initialize(object_attribute_hash = {}) m = method(respond_to?(:public_send) ? :public_send : :send) object_attribute_hash.map { |(k, v)| m.call("#{k}=", v) } yield(self) if block_given? end end
Version data entries
18 entries across 18 versions & 1 rubygems