Class: FileType::Gem

Inherits:
Generic show all
Defined in:
lib/file_type.rb

Instance Attribute Summary

Attributes inherited from Generic

#base, #ext, #path

Instance Method Summary collapse

Methods inherited from Generic

#+, #extractable?, #extsplit, filetype_extension, inherited, #initialize, match_type, #symtbl_to_s, #to_s

Constructor Details

This class inherits a constructor from FileType::Generic

Instance Method Details

#install(install_dir = nil) ⇒ Object



273
274
275
276
277
# File 'lib/file_type.rb', line 273

def install ( install_dir=nil )
  cmd = gem('install', path)
  cmd << '--install-dir' << install_dir unless install_dir.nil?
  cmd.run(runner)
end

#installable?Boolean

Returns:

  • (Boolean)


269
270
271
# File 'lib/file_type.rb', line 269

def installable?
  true
end