module AE
Constants
- BasicObject
- VERSION
Becuase Ruby 1.8~ gets in the way :(
Public Class Methods
ansi=(boolean)
click to toggle source
To turn of ANSI colorized error messages off, set ansi to false
in your test helper.
@example
AE.ansi = false
# File lib/ae/ansi.rb, line 21 def self.ansi=(boolean) @ansi = boolean end
ansi?()
click to toggle source
ANSI mode.
@return [Boolean] ANSI mode.
# File lib/ae/ansi.rb, line 11 def self.ansi? @ansi end
assertion_error=(exception_class)
click to toggle source
Set Assertion
class. This is a convenience method for framework adapters, used to set the exception class that a framework uses to raise an assertion error.
@param [Class] exception_class
The Exception subclass used to raise assertions.
# File lib/ae.rb, line 13 def self.assertion_error=(exception_class) verbose, $VERBOSE = $VERBOSE, nil Object.const_set(:Assertion, exception_class) $VERBOSE = verbose end
const_missing(name)
click to toggle source
Calls superclass method
# File lib/ae/version.rb, line 13 def self.const_missing(name) key = name.to_s.downcase metadata[key] || super(name) end
metadata()
click to toggle source
Access project metadata.
@return [Hash]
# File lib/ae/version.rb, line 5 def self.metadata @metadata ||= ( require 'yaml' YAML.load(File.new(File.dirname(__FILE__) + '/../ae.yml')) ) end