Class: BitmapCompiler::Core::Output
- Inherits:
-
Object
- Object
- BitmapCompiler::Core::Output
- Defined in:
- lib/bitmap_compiler/core/output.rb
Overview
Output entity
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.
9 10 11 12 |
# File 'lib/bitmap_compiler/core/output.rb', line 9 def initialize(args = {}) @bitmap = args[:bitmap] = args[:message] end |
Instance Attribute Details
#bitmap ⇒ Object (readonly)
Returns the value of attribute bitmap.
7 8 9 |
# File 'lib/bitmap_compiler/core/output.rb', line 7 def bitmap @bitmap end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/bitmap_compiler/core/output.rb', line 7 def end |
Instance Method Details
#print ⇒ Object
14 15 16 17 18 19 |
# File 'lib/bitmap_compiler/core/output.rb', line 14 def print return unless $stdout.write .chomp '' $stdout.write "\n" end |