Class: NilClass
- Inherits:
-
Object
- Object
- NilClass
- Defined in:
- lib/na/string.rb
Overview
Special handling for nil strings
Instance Method Summary collapse
-
#highlight_filename ⇒ String
Always returns an empty string for nil.
-
#trunc_middle(max) ⇒ String
Always returns an empty string for nil.
Instance Method Details
#highlight_filename ⇒ String
Always returns an empty string for nil.
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.
14 15 16 |
# File 'lib/na/string.rb', line 14 def trunc_middle(max) '' end |