Sha256: bb489347dfffc4de1d30de9495433f82ab12d8205ec4c0bf15643906f9e06e18
Contents?: true
Size: 267 Bytes
Versions: 3
Compression:
Stored size: 267 Bytes
Contents
# frozen_string_literal: true module GitStats module HashInitializable def initialize(params = {}) raise "pass a Hash to initialize #{self.class}" unless params.is_a? Hash params.each { |k, v| instance_variable_set("@#{k}", v) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nova_git_stats-2.4.1 | lib/git_stats/hash_initializable.rb |
nova_git_stats-2.4.0 | lib/git_stats/hash_initializable.rb |
nova_git_stats-2.3.0 | lib/git_stats/hash_initializable.rb |