Class: RBS::UnitTest::Convertibles::ToC

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

Overview

An object with #to_c method

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

Constructor Details

#initializeToC

Returns a new instance of ToC.

Parameters:

  • value (Object)


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

def initialize: (?untyped value) -> void

Instance Method Details

#to_cObject

Returns:

  • (Object)


79
80
81
# File 'lib/rbs/unit_test/convertibles.rb', line 79

def to_c
  @value
end