Sha256: 2cf30fd5f9b63fbd74e4e96493fc6fb95e28d99cd997ca869cf4226957fdc98c
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 Bytes
Contents
module Tabulo # @!visibility private module Util # @!visibility private def self.divides?(smaller, larger) larger % smaller == 0 end # @!visibility private def self.max(x, y) x > y ? x : y end # @!visibility private def self.slice_hash(hash, *keys) new_hash = {} keys.each { |k| new_hash[k] = hash[k] if hash.include?(k) } new_hash end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tabulo-2.5.0 | lib/tabulo/util.rb |
tabulo-2.4.1 | lib/tabulo/util.rb |
tabulo-2.4.0 | lib/tabulo/util.rb |
tabulo-2.3.3 | lib/tabulo/util.rb |