Class: Vitreous::Share::CommonStructure

Inherits:
Object
  • Object
show all
Defined in:
lib/vitreous/share/common_structure.rb

Direct Known Subclasses

DropboxStructure, LocalStructure

Class Method Summary collapse

Class Method Details

.txt?(path) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/vitreous/share/common_structure.rb', line 4

def self.txt?( path )
  File.extname( path ).gsub( '.', '' ) =~ Vitreous::TXT_EXTENSIONS
end