Class: RBS::UnitTest::Convertibles::ToStr

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

Overview

An object with #to_str method

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

Constructor Details

#initialize(value = "") ⇒ ToStr

Returns a new instance of ToStr.

Parameters:

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


85
86
87
# File 'lib/rbs/unit_test/convertibles.rb', line 85

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

Instance Method Details

#to_strObject

Returns:

  • (Object)


89
90
91
# File 'lib/rbs/unit_test/convertibles.rb', line 89

def to_str
  @value
end