class Triple
Attributes
first[R]
second[R]
size[R]
third[R]
Public Class Methods
new(first, second, third)
click to toggle source
# File lib/static_ruby.rb, line 36 def initialize(first, second, third) @first = first @second = second @third = third @size = 3 end
Public Instance Methods
!=(o)
click to toggle source
# File lib/static_ruby.rb, line 55 def !=(o) @first != o.first || @second != o.second || @third != o.third end
==(o)
click to toggle source
# File lib/static_ruby.rb, line 51 def ==(o) @first == o.first && @second == o.second && @third == o.third end
each(&block)
click to toggle source
# File lib/static_ruby.rb, line 59 def each(&block) block.call(@first) block.call(@second) block.call(@third) end
to_a()
click to toggle source
# File lib/static_ruby.rb, line 43 def to_a [@first, @second, @third] end
to_s()
click to toggle source
# File lib/static_ruby.rb, line 47 def to_s "Triple(#{@first} #{@second} #{@third})" end