Module: Ruby::Engine

Defined in:
lib/ruby-version.rb

Overview

Wraps the RUBY_ENGINE constant. In fact, handles returning the correct value on Ruby 1.8 in the main.

Class Method Summary collapse

Class Method Details

.==(value) ⇒ Boolean

Equality operator.

Parameters:

  • value (String, Symbol)

    engine identifier

Returns:

  • (Boolean)

    true if yes, +false otherwise



34
35
36
# File 'lib/ruby-version.rb', line 34

def self.==(value)
    return self::NAME == value.to_s
end