Class: RBS::UnitTest::Convertibles::ToR

Inherits:
BlankSlate
  • Object
show all
Defined in:
sig/unit_test/convertibles.rbs,
lib/rbs/unit_test/convertibles.rb

Overview

An object with #to_r method

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

Constructor Details

#initializeToR

Returns a new instance of ToR.

Parameters:

  • value (Object)


54
# File 'sig/unit_test/convertibles.rbs', line 54

def initialize: (?untyped value) -> void

Instance Method Details

#to_rObject

Returns:

  • (Object)


69
70
71
# File 'lib/rbs/unit_test/convertibles.rb', line 69

def to_r
  @value
end