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

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

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

Constructor Details

#initialize(value = :&) ⇒ ToSym

Returns a new instance of ToSym.



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

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

Instance Method Details

#to_symObject



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

def to_sym
  @value
end