Class: PhusionPassenger::Dependency::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/phusion_passenger/dependencies.rb

Instance Method Summary collapse

Instance Method Details

#found(*args) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/phusion_passenger/dependencies.rb', line 61

def found(*args)
	if args.empty?
		@found = true
	else
		@found = args.first
	end
end

#found?Boolean

Returns:

  • (Boolean)


73
74
75
# File 'lib/phusion_passenger/dependencies.rb', line 73

def found?
	return !@found.nil? && @found
end

#found_atObject



77
78
79
80
81
82
83
# File 'lib/phusion_passenger/dependencies.rb', line 77

def found_at
	if @found.is_a?(TrueClass) || @found.is_a?(FalseClass)
		return nil
	else
		return @found
	end
end

#not_foundObject



69
70
71
# File 'lib/phusion_passenger/dependencies.rb', line 69

def not_found
	found(false)
end