Class: RBS::UnitTest::Convertibles::ToSym

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

Overview

An object with #to_sym method

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

Constructor Details

#initialize(value = :&) ⇒ ToSym

Returns a new instance of ToSym.

Parameters:

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


105
106
107
# File 'lib/rbs/unit_test/convertibles.rb', line 105

def initialize(value = :&)
  @value = value
end

Instance Method Details

#to_symObject

Returns:

  • (Object)


109
110
111
# File 'lib/rbs/unit_test/convertibles.rb', line 109

def to_sym
  @value
end