class Ironment::Finder
Public Class Methods
new()
click to toggle source
# File lib/ironment/finder.rb, line 5 def initialize @pwd = Pathname.pwd end
Public Instance Methods
find()
click to toggle source
# File lib/ironment/finder.rb, line 9 def find Enumerator.new do |y| until @pwd.root? y << Runcom.new(cdrc) if has_cdrc? @pwd = @pwd.parent end y << Runcom.new(cdrc) if has_cdrc? end end
Private Instance Methods
cdrc()
click to toggle source
# File lib/ironment/finder.rb, line 26 def cdrc File.join @pwd, Ironment.runcom end
has_cdrc?()
click to toggle source
# File lib/ironment/finder.rb, line 22 def has_cdrc? File.exist? cdrc end