class Hash

Public Instance Methods

to_chart() { |value| ... } click to toggle source
# File lib/montecasting/hash.rb, line 2
def to_chart
  result = Array.new
  each {|key, value| result << {x: key, y: yield(value)}  }
  result
end