Module: RELI

Defined in:
lib/reli.rb,
lib/reli/ook.rb,
lib/reli/version.rb,
lib/reli/abstract.rb,
lib/reli/malbolge.rb,
lib/reli/monamona.rb,
lib/reli/brainfuck.rb

Defined Under Namespace

Classes: Abstract, Brainfuck, Malbolge, Monamona, Ook

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



12
13
14
# File 'lib/reli.rb', line 12

def self.[](key)
  self.const_get(key.capitalize)
end

.new(options = {}) ⇒ Object



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

def self.new(options = {})
  type = options.delete(:type) || :brainfuck
  self[type].new(options)
end