Sha256: 70493020a599cc4a45315a5f05c22d1c43eb077b4f1a7bd79c054ee77d6faa85
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
require 'kuzira/errors' module Kuzira def initialize(attributes = {}) if attributes attributes.each do |key, value| setter = :"#{key}=" if respond_to?(setter) public_send(setter, value) if respond_to?(setter) else raise UnknownAttributeError.new(self, value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kuzira-0.1.0 | lib/kuzira.rb |