Class: Brainfuck::Stage::BfFile
- Inherits:
-
Rubinius::Compiler::Stage
- Object
- Rubinius::Compiler::Stage
- Brainfuck::Stage::BfFile
- Defined in:
- lib/brainfuck/stages.rb
Overview
This stage takes a brainfuck filename and produces a ruby array containing representation of the brainfuck source.
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#print ⇒ Object
Returns the value of attribute print.
Instance Method Summary collapse
-
#initialize(compiler, last) ⇒ BfFile
constructor
A new instance of BfFile.
- #input(filename, line = 1) ⇒ Object
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
147 148 149 |
# File 'lib/brainfuck/stages.rb', line 147 def filename @filename end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
147 148 149 |
# File 'lib/brainfuck/stages.rb', line 147 def line @line end |
#print ⇒ Object
Returns the value of attribute print.
148 149 150 |
# File 'lib/brainfuck/stages.rb', line 148 def print @print end |
Instance Method Details
#input(filename, line = 1) ⇒ Object
156 157 158 159 |
# File 'lib/brainfuck/stages.rb', line 156 def input(filename, line = 1) @filename = filename @line = line end |