Methods

Class/Module Index [+]

Quicksearch

HammerCLI::Options::Normalizers::File

Public Instance Methods

complete(value) click to toggle source
# File lib/hammer_cli/options/normalizers.rb, line 95
def complete(value)
  Dir[value.to_s+'*'].collect do |file|
    if ::File.directory?(file)
      file+'/'
    else
      file+' '
    end
  end
end
format(path) click to toggle source
# File lib/hammer_cli/options/normalizers.rb, line 91
def format(path)
  ::File.read(::File.expand_path(path))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.