Class: RubyPost::GraphFile
- Inherits:
-
BaseGraphData
- Object
- Object
- BaseDrawCommand
- BaseGraphData
- RubyPost::GraphFile
- Defined in:
- lib/graph.rb
Overview
Implements the graph data filename macro
Direct Known Subclasses
Instance Attribute Summary collapse
-
#filename ⇒ Object
writeonly
Sets the attribute filename.
Attributes inherited from BaseDrawCommand
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(filename = nil) ⇒ GraphFile
constructor
A new instance of GraphFile.
Methods inherited from BaseGraphData
#add_coords, #add_grid, #add_label, #add_post_command, #add_pre_command, #add_range, #compile_post_commands, #compile_pre_commands
Methods inherited from BaseDrawCommand
#add_option, #color, #colour, #compile_options, #rotate, #scale, #set_drawable, #translate
Constructor Details
#initialize(filename = nil) ⇒ GraphFile
Returns a new instance of GraphFile.
112 113 114 115 |
# File 'lib/graph.rb', line 112 def initialize(filename=nil) super() @filename = filename end |
Instance Attribute Details
#filename=(value) ⇒ Object (writeonly)
Sets the attribute filename
110 111 112 |
# File 'lib/graph.rb', line 110 def filename=(value) @filename = value end |
Instance Method Details
#compile ⇒ Object
117 118 119 |
# File 'lib/graph.rb', line 117 def compile "\"" + @filename + "\" " + + ";" end |