123456789_123456789_123456789_123456789_123456789_

Class: RBS::UnitTest::Convertibles::ToInt

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BlankSlate
Instance Chain:
self, BlankSlate
Inherits: RBS::UnitTest::Convertibles::BlankSlate
Defined in: lib/rbs/unit_test/convertibles.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(value = 3) ⇒ ToInt

[ GitHub ]

  
# File 'lib/rbs/unit_test/convertibles.rb', line 44

def initialize(value = 3)
  @value = value
end

Instance Method Details

#to_int

[ GitHub ]

  
# File 'lib/rbs/unit_test/convertibles.rb', line 48

def to_int
  @value
end