Module: FunWith::Files::CoreExtensions::String

Defined in:
lib/fun_with/files/core_extensions/string.rb

Instance Method Summary collapse

Instance Method Details

#fwf_blank?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/fun_with/files/core_extensions/string.rb', line 5

def fwf_blank?
  self.strip.length == 0
end

#fwf_filepath(*args) ⇒ Object



9
10
11
# File 'lib/fun_with/files/core_extensions/string.rb', line 9

def fwf_filepath( *args )
  FunWith::Files::FilePath.new( self, *args )
end

#to_pathnameObject



13
14
15
# File 'lib/fun_with/files/core_extensions/string.rb', line 13

def to_pathname
  Pathname.new( self )
end