Class: FileType::Yaml

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, #installable?, match_type, #symtbl_to_s, #to_s

Constructor Details

This class inherits a constructor from FileType::Generic

Instance Method Details

#loadObject



258
259
260
# File 'lib/file_type.rb', line 258

def load
  YAML.load(path.read)
end