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



70
71
72
73
74
75
76
# File 'lib/phusion_passenger/dependencies.rb', line 70

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

#found?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/phusion_passenger/dependencies.rb', line 82

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

#found_atObject



86
87
88
89
90
91
92
# File 'lib/phusion_passenger/dependencies.rb', line 86

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

#not_foundObject



78
79
80
# File 'lib/phusion_passenger/dependencies.rb', line 78

def not_found
	found(false)
end