Module: Visage

Defined in:
lib/visage.rb,
lib/visage/converter.rb,
lib/visage/iso_generator.rb

Defined Under Namespace

Classes: Converter, ISOGenerator

Constant Summary collapse

SOURCE_TYPES =

Supported source types

%w[ .dvdmedia .cdr ]

Class Method Summary collapse

Class Method Details

.valid_source_file?(file) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
18
19
# File 'lib/visage.rb', line 12

def self.valid_source_file?( file )
  Visage::SOURCE_TYPES.each do | source_type |
    if( file.include?( source_type ) )
      return true
    end
  end
  return false
end

.versionObject



21
22
23
24
# File 'lib/visage.rb', line 21

def self.version
  yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
  "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
end