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.


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