class MyChart::X

Public Class Methods

new(objs) click to toggle source
# File lib/my_chart/x.rb, line 5
def initialize objs
  @objs = objs
end

Public Instance Methods

==(obj) click to toggle source
# File lib/my_chart/x.rb, line 21
def == obj
  obj.kind_of? X and value == obj.value
end
group_by(&blk) click to toggle source
# File lib/my_chart/x.rb, line 13
def group_by &blk
  XY.new value.group_by(&blk)
end
select(&blk) click to toggle source
# File lib/my_chart/x.rb, line 9
def select &blk
  X.new value.select(&blk)
end
value() click to toggle source
# File lib/my_chart/x.rb, line 17
def value
  @objs
end