class Goldmine::Miner
Attributes
cache[R]
pivots[R]
Public Class Methods
new(array=[], cache: false)
click to toggle source
# File lib/goldmine/miner.rb, line 11 def initialize(array=[], cache: false) @pivots = [] @array = array.to_a @cache = cache end
Public Instance Methods
pivot(name, &block)
click to toggle source
# File lib/goldmine/miner.rb, line 17 def pivot(name, &block) Pivot.new(name, self, block) end