Class: String

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

Instance Method Summary collapse

Instance Method Details

#headObject



6
7
8
# File 'lib/tankobon/ext/string.rb', line 6

def head
  self[0]
end

#tailObject



2
3
4
# File 'lib/tankobon/ext/string.rb', line 2

def tail
  self[1, length]
end