Sha256: 8230f9f274cec49c57d4038a06882ec8fd86adbfd3ce82c6b649350e2958c5b3
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
module Zelda # Abstract base class to provide common functionality of Zelda importer classes. # Every key in the hash is turned into a method, returning the value. class Base def initialize(attributes={}) attributes.each_pair do |key, value| self.class.send(:define_method, key) do value end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zelda-1.2.0 | lib/zelda/base.rb |