Class: String

Inherits:
Object
  • Object
show all
Includes:
Term::ANSIColor
Defined in:
lib/terminal-table/spec/cell_spec.rb,
lib/terminal-table/spec/spec_helper.rb,
lib/terminal-table/lib/terminal-table/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#align(position, length) ⇒ Object



3
4
5
# File 'lib/terminal-table/lib/terminal-table/core_ext.rb', line 3

def align position, length
  self.__send__ position, length
end

#deindentObject



5
6
7
# File 'lib/terminal-table/spec/spec_helper.rb', line 5

def deindent
  strip.gsub(/^ */, '')
end