Module: RubyEngine
- Defined in:
- lib/zucker/engine.rb
Class Method Summary collapse
- .cardinal? ⇒ Boolean (also: parrot?, perl?)
- .ironruby? ⇒ Boolean (also: iron_ruby?)
- .is?(what) ⇒ Boolean (also: is)
- .jruby? ⇒ Boolean (also: java?)
-
.mri? ⇒ Boolean
(also: official_ruby?, ruby?)
ask methods.
- .ree? ⇒ Boolean (also: enterprise?)
- .rubinius? ⇒ Boolean (also: rbx?)
- .to_s ⇒ Object
Class Method Details
.cardinal? ⇒ Boolean Also known as: parrot?, perl?
61 62 63 |
# File 'lib/zucker/engine.rb', line 61 def cardinal? RubyEngine.is? 'cardinal' end |
.ironruby? ⇒ Boolean Also known as: iron_ruby?
56 57 58 |
# File 'lib/zucker/engine.rb', line 56 def ironruby? RubyEngine.is? 'ironruby' end |
.is?(what) ⇒ Boolean Also known as: is
24 25 26 |
# File 'lib/zucker/engine.rb', line 24 def is?(what) what === @interpreter end |
.jruby? ⇒ Boolean Also known as: java?
41 42 43 |
# File 'lib/zucker/engine.rb', line 41 def jruby? RubyEngine.is? 'jruby' end |
.mri? ⇒ Boolean Also known as: official_ruby?, ruby?
ask methods
35 36 37 |
# File 'lib/zucker/engine.rb', line 35 def mri? RubyEngine.is? 'mri' end |
.ree? ⇒ Boolean Also known as: enterprise?
51 52 53 |
# File 'lib/zucker/engine.rb', line 51 def ree? RubyEngine.is? 'ree' end |
.rubinius? ⇒ Boolean Also known as: rbx?
46 47 48 |
# File 'lib/zucker/engine.rb', line 46 def rubinius? RubyEngine.is? 'rbx' end |
.to_s ⇒ Object
29 30 31 |
# File 'lib/zucker/engine.rb', line 29 def to_s @interpreter.to_s end |