Module: Mulligan

Defined in:
lib/mulligan.rb,
lib/mulligan/version.rb,
lib/mulligan/condition.rb,
lib/mulligan/kernel_pure.rb,
lib/mulligan/kernel_common.rb,
ext/mulligan/mulligan.c

Defined Under Namespace

Modules: Condition, Kernel Classes: ControlException, UnsupportedException

Constant Summary collapse

VERSION =
"0.4.2"

Class Method Summary collapse

Class Method Details

.supported?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/mulligan.rb', line 3

def self.supported?
  !!(defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && RUBY_VERSION >= "1.9.3")
end

.using_extension?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/mulligan.rb', line 7

def self.using_extension?
  supported?
end