Class: RELI::Braincrash
- Defined in:
- lib/reli/braincrash.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Braincrash
constructor
A new instance of Braincrash.
- #run(code) ⇒ Object
Methods inherited from Abstract
Constructor Details
#initialize(options = {}) ⇒ Braincrash
Returns a new instance of Braincrash.
28 29 30 31 |
# File 'lib/reli/braincrash.rb', line 28 def initialize( = {}) super @memory = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33] end |
Instance Method Details
#run(code) ⇒ Object
33 34 35 |
# File 'lib/reli/braincrash.rb', line 33 def run(code) super code + "[.>]" end |