Class: CowProxy::String

Inherits:
WrapClass
  • Object
show all
Defined in:
lib/cow_proxy/string.rb

Overview

Wrapper class for String

Instance Method Summary collapse

Instance Method Details

#to_sObject

returns the wrapped object.

needed to used wrapped string inside interpolation

Returns:

  • the wrapped object.



9
10
11
# File 'lib/cow_proxy/string.rb', line 9

def to_s
  __getobj__
end

#to_strObject

returns the wrapped object.

needed to used wrapped string as parameter for send

Returns:

  • the wrapped object.



18
19
20
# File 'lib/cow_proxy/string.rb', line 18

def to_str
  __getobj__
end