Programatica/cow_proxy

View on GitHub
lib/cow_proxy/string.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CowProxy
  # Wrapper class for String
  class String < WrapClass(::String)
    # returns the wrapped object.
    #
    # needed to used wrapped string inside interpolation
    #
    # @return the wrapped object.
    def to_s
      __getobj__
    end

    # returns the wrapped object.
    #
    # needed to used wrapped string as parameter for send
    #
    # @return the wrapped object.
    def to_str
      __getobj__
    end
  end
end