Class: NilClass

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

Overview

Special handling for nil strings

Instance Method Summary collapse

Instance Method Details

#highlight_filenameString

Always returns an empty string for nil.

Returns:



7
8
9
# File 'lib/na/string.rb', line 7

def highlight_filename
  ''
end

#trunc_middle(max) ⇒ String

Always returns an empty string for nil.

Parameters:

  • max (Integer)

    Maximum allowed length

Returns:



14
15
16
# File 'lib/na/string.rb', line 14

def trunc_middle(max)
  ''
end