Class: Rake::GnuplotTask
- Inherits:
-
FigureTask
- Object
- TaskLib
- FigureTask
- Rake::GnuplotTask
- Defined in:
- lib/rake-latex/figures.rb
Instance Attribute Summary collapse
-
#fonts ⇒ Object
Returns the value of attribute fonts.
-
#includes ⇒ Object
Returns the value of attribute includes.
Attributes inherited from FigureTask
Instance Method Summary collapse
- #define ⇒ Object
- #init(name, fonts) ⇒ Object
-
#initialize(name, fonts) {|_self| ... } ⇒ GnuplotTask
constructor
A new instance of GnuplotTask.
Constructor Details
#initialize(name, fonts) {|_self| ... } ⇒ GnuplotTask
Returns a new instance of GnuplotTask.
133 134 135 136 137 |
# File 'lib/rake-latex/figures.rb', line 133 def initialize(name, fonts) init(name, fonts) yield self if block_given? define unless name.nil? end |
Instance Attribute Details
#fonts ⇒ Object
Returns the value of attribute fonts.
131 132 133 |
# File 'lib/rake-latex/figures.rb', line 131 def fonts @fonts end |
#includes ⇒ Object
Returns the value of attribute includes.
131 132 133 |
# File 'lib/rake-latex/figures.rb', line 131 def includes @includes end |
Instance Method Details
#define ⇒ Object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/rake-latex/figures.rb', line 145 def define @includes.collect! { |f| Rake.rootdir + f } file @eps => [@source] + @includes do self.generate_eps end file @pdf => [@eps] do self.generate_pdf end task :figures => [@eps, @pdf] task :clean do clean_figures end task :gnuplot => [@eps, @pdf] end |
#init(name, fonts) ⇒ Object
139 140 141 142 143 |
# File 'lib/rake-latex/figures.rb', line 139 def init(name, fonts) super(name) @fonts = fonts @includes = [] end |