Class: String

Inherits:
Object show all
Defined in:
lib/ruber/utils.rb

Instance Method Summary collapse

Instance Method Details

#split_lines<String>

Splits the string in lines.

It’s a shortcut for str.split(“n”)

Returns:

  • (<String>)

    an array containing the lines which make up the string



212
213
214
# File 'lib/ruber/utils.rb', line 212

def split_lines
  split "\n"
end

#string_like?Boolean

Overryde of Kernel#string_like?

Returns:

  • (Boolean)

    true



221
222
223
# File 'lib/ruber/utils.rb', line 221

def string_like?
  true
end