Sha256: 7bf162cf1109c64856bc85d84f5fb97a9a0912a5989a01e25b6c813d0ad17c8a

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

require 'my_chart/xy'

module MyChart
  class X
    def initialize objs
      @objs = objs
    end

    def select &blk
      X.new value.select(&blk)
    end

    def group_by &blk
      XY.new value.group_by(&blk)
    end

    def value
      @objs
    end

    def == obj
      obj.kind_of? X and value == obj.value
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
my_chart-0.1.3 lib/my_chart/x.rb