Class: String

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

Instance Method Summary collapse

Instance Method Details

#as_pathObject



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

def as_path
  File.join(*(split(/\W/)))
end

#expaObject



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

def expa
  File.expand_path(self)
end

#fObject



10
11
12
# File 'lib/crudboy/ext/string.rb', line 10

def f
  expa
end

#pObject



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

def p
  puts self
end