Class: Miron::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/miron/utils.rb

Class Method Summary collapse

Class Method Details

.mironfile_in_dir(dir) ⇒ Pathname, Nil

Returns the path of the Mironfile in the given dir, if any exists.

Parameters:

  • dir (Pathname)

    The directory where to look for the Mironfile.

Returns:

  • (Pathname)

    The path of the Mironfile.

  • (Nil)

    If no Mironfile was found in the given dir


11
12
13
14
15
16
17
18
# File 'lib/miron/utils.rb', line 11

def self.mironfile_in_dir(dir)
  mironfile = dir + 'Mironfile.rb'
  if mironfile.exist?
    true
  else
    false
  end
end