Class Choose::ChooseTest::Xs
In: lib/choose.rb
Parent: Object

Methods

<=>   inspect   new   succ  

Included Modules

Comparable

Attributes

length  [R] 

Public Class methods

[Source]

# File lib/choose.rb, line 247
        def initialize ( n )
          @length = n
        end

Public Instance methods

[Source]

# File lib/choose.rb, line 253
        def <=> ( rhs )
          @length <=> rhs.length
        end

[Source]

# File lib/choose.rb, line 256
        def inspect
          'x' * @length
        end

[Source]

# File lib/choose.rb, line 250
        def succ
          Xs.new(@length.succ)
        end

[Validate]