Class: Launchy::Detect::RubyEngine::Mri

Inherits:
Launchy::Detect::RubyEngine show all
Defined in:
lib/launchy/detect/ruby_engine.rb

Overview

This is the ruby engine if the RUBY_ENGINE constant is not defined

Instance Attribute Summary

Attributes inherited from Launchy::Detect::RubyEngine

#ruby_engine

Class Method Summary collapse

Methods inherited from Launchy::Detect::RubyEngine

detect, #initialize, jruby?, macruby?, mri?, rbx?, ruby_engine_error_message

Methods included from Launchy::DescendantTracker

#children, #find_child, #inherited

Constructor Details

This class inherits a constructor from Launchy::Detect::RubyEngine

Class Method Details

.engine_nameObject


56
# File 'lib/launchy/detect/ruby_engine.rb', line 56

def self.engine_name() "ruby"; end

.is_current_engine?(ruby_engine) ⇒ Boolean


57
58
59
60
61
62
63
# File 'lib/launchy/detect/ruby_engine.rb', line 57

def self.is_current_engine?( ruby_engine )
  if ruby_engine then
    super( ruby_engine )
  else
    return true if not Launchy.ruby_engine and not defined?( RUBY_ENGINE )
  end
end