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.



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

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

Instance Method Details

#to_symObject



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

def to_sym
  @value
end