Module: RELI

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

Defined Under Namespace

Classes: Abstract, Braincrash, Brainfuck, Hq9plus, Malbolge, Monamona, Ook

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



14
15
16
# File 'lib/reli.rb', line 14

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

.new(options = {}) ⇒ Object



9
10
11
12
# File 'lib/reli.rb', line 9

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