Module: Pik::Implementations
- Defined in:
- lib/pik/implementations.rb
Defined Under Namespace
Classes: Base, DevKit, IronRuby, JRuby, Ruby
Class Method Summary
collapse
Class Method Details
.[](implementation) ⇒ Object
6
7
8
|
# File 'lib/pik/implementations.rb', line 6
def self.[](implementation)
self.send(implementation.downcase)
end
|
22
23
24
|
# File 'lib/pik/implementations.rb', line 22
def self.devkit
DevKit.new
end
|
.implementations ⇒ Object
30
31
32
|
# File 'lib/pik/implementations.rb', line 30
def self.implementations
[ruby, jruby, ironruby, devkit]
end
|
14
15
16
|
# File 'lib/pik/implementations.rb', line 14
def self.ironruby
IronRuby.new
end
|
18
19
20
|
# File 'lib/pik/implementations.rb', line 18
def self.jruby
JRuby.new
end
|
34
35
36
37
38
|
# File 'lib/pik/implementations.rb', line 34
def self.list
h = {}
implementations.each{|i| h[i.subclass] = i.versions }
h
end
|
.method_missing(meth) ⇒ Object
26
27
28
|
# File 'lib/pik/implementations.rb', line 26
def self.method_missing(meth)
raise "Pik isn't aware of an implementation called '#{meth}' for Windows."
end
|
10
11
12
|
# File 'lib/pik/implementations.rb', line 10
def self.ruby
Ruby.new
end
|