aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/math/fixtures/classes.rb
blob: 6f2241e7398f940b300270210a3990f069fcc73a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class IncludesMath
  include Math
end

module MathSpecs
  class Float < Numeric
    def initialize(value=1.0)
      @value = value
    end

    def to_f
      @value
    end
  end

  class Integer
    def to_int
      2
    end
  end

  class UserClass
  end

  class StringSubClass < String
  end

end