Sha256: 770fe3e9c3f1b343f81d67f046ee18c289c320b6800bdd44d2bdcbf983a1c5d8
Contents?: true
Size: 283 Bytes
Versions: 2
Compression:
Stored size: 283 Bytes
Contents
module JellyBird module Generate def gen(opts = {}) options = self::generator.call if self::generator options.merge!(opts) obj = self.new(options) options.each_pair { |key, value| obj[key] = value } if obj.kind_of?(Hash) obj end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jelly_bird-0.0.2 | lib/jelly_bird/gen.rb |
jelly_bird-0.0.1 | lib/jelly_bird/gen.rb |