Class: Rake::FigureTask
- Inherits:
-
TaskLib
- Object
- TaskLib
- Rake::FigureTask
- Defined in:
- lib/rake-latex/figures.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#eps ⇒ Object
Returns the value of attribute eps.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pdf ⇒ Object
Returns the value of attribute pdf.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
- #define ⇒ Object
- #init(name) ⇒ Object
-
#initialize(name) {|_self| ... } ⇒ FigureTask
constructor
A new instance of FigureTask.
Constructor Details
#initialize(name) {|_self| ... } ⇒ FigureTask
Returns a new instance of FigureTask.
35 36 37 38 39 |
# File 'lib/rake-latex/figures.rb', line 35 def initialize(name) init(name) yield self if block_given? define unless name.nil? end |
Instance Attribute Details
#eps ⇒ Object
Returns the value of attribute eps.
32 33 34 |
# File 'lib/rake-latex/figures.rb', line 32 def eps @eps end |
#name ⇒ Object
Returns the value of attribute name.
30 31 32 |
# File 'lib/rake-latex/figures.rb', line 30 def name @name end |
#pdf ⇒ Object
Returns the value of attribute pdf.
33 34 35 |
# File 'lib/rake-latex/figures.rb', line 33 def pdf @pdf end |
#source ⇒ Object
Returns the value of attribute source.
31 32 33 |
# File 'lib/rake-latex/figures.rb', line 31 def source @source end |
Instance Method Details
#define ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/rake-latex/figures.rb', line 48 def define file @eps => [@source] do self.generate_eps end file @pdf => [@source] do self.generate_pdf end task :figures => [@eps, @pdf] task :clean do clean_figures end end |