Class: NilClass

Inherits:
Object
  • Object
show all
Defined in:
lib/rtp-connect/ruby_extensions.rb

Overview

An extension to the NilClass, facilitating a transformation from nil to an empty (double quoted) string in the case of undefined attributes.

Instance Method Summary collapse

Instance Method Details

#wrapString

Gives a double quoted, but otherwise empty string.

Returns:

  • (String)

    a string containing two double-quotes



121
122
123
# File 'lib/rtp-connect/ruby_extensions.rb', line 121

def wrap
  '""'
end