Class: GetGeo::Printer
- Inherits:
-
Object
- Object
- GetGeo::Printer
- Defined in:
- lib/get_geo/printer.rb
Direct Known Subclasses
Defined Under Namespace
Classes: CLI
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#output_string ⇒ Object
readonly
Returns the value of attribute output_string.
Instance Method Summary collapse
-
#initialize(data) ⇒ Printer
constructor
A new instance of Printer.
- #print ⇒ Object
Constructor Details
#initialize(data) ⇒ Printer
Returns a new instance of Printer.
4 5 6 7 |
# File 'lib/get_geo/printer.rb', line 4 def initialize(data) @data = data set_output_string end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
2 3 4 |
# File 'lib/get_geo/printer.rb', line 2 def data @data end |
#output_string ⇒ Object (readonly)
Returns the value of attribute output_string.
2 3 4 |
# File 'lib/get_geo/printer.rb', line 2 def output_string @output_string end |
Instance Method Details
#print ⇒ Object
9 10 11 |
# File 'lib/get_geo/printer.rb', line 9 def print output_string end |