Class: RBS::UnitTest::Convertibles::ToS

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

Overview

An object with #to_s method

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

Constructor Details

#initialize(value = "") ⇒ ToS

Returns a new instance of ToS.

Parameters:

  • value (Object) (defaults to: "")


95
96
97
# File 'lib/rbs/unit_test/convertibles.rb', line 95

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

Instance Method Details

#to_sObject

Returns:

  • (Object)


99
100
101
# File 'lib/rbs/unit_test/convertibles.rb', line 99

def to_s
  @value
end