Class: BitmapCompiler::Core::Output
- Inherits:
-
Object
- Object
- BitmapCompiler::Core::Output
- Defined in:
- lib/bitmap_compiler/core/output.rb
Instance Attribute Summary collapse
-
#bitmap ⇒ Object
readonly
Returns the value of attribute bitmap.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Output
constructor
A new instance of Output.
- #print ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Output
Returns a new instance of Output.
8 9 10 11 |
# File 'lib/bitmap_compiler/core/output.rb', line 8 def initialize(args = {}) @bitmap = args[:bitmap] = args[:message] end |
Instance Attribute Details
#bitmap ⇒ Object (readonly)
Returns the value of attribute bitmap.
6 7 8 |
# File 'lib/bitmap_compiler/core/output.rb', line 6 def bitmap @bitmap end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/bitmap_compiler/core/output.rb', line 6 def end |
Instance Method Details
#print ⇒ Object
13 14 15 16 17 18 |
# File 'lib/bitmap_compiler/core/output.rb', line 13 def print return unless $stdout.write .chomp '' $stdout.write "\n" end |