Class: Rattler::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Rattler::RakeTask
- Includes:
- Rake::DSL
- Defined in:
- lib/rattler/rake_task.rb
Overview
The rake task to generate parser code from a grammar
Instance Attribute Summary collapse
-
#grammar ⇒ Object
Returns the value of attribute grammar.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rtlr_opts ⇒ Object
Returns the value of attribute rtlr_opts.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize(name = :rattler) {|_self| ... } ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(name = :rattler) {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rattler/rake_task.rb', line 17 def initialize(name = :rattler) @name = name @grammar = nil @rtlr_opts = [] @verbose = true yield self if block_given? define_task end |
Instance Attribute Details
#grammar ⇒ Object
Returns the value of attribute grammar.
13 14 15 |
# File 'lib/rattler/rake_task.rb', line 13 def grammar @grammar end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/rattler/rake_task.rb', line 12 def name @name end |
#rtlr_opts ⇒ Object
Returns the value of attribute rtlr_opts.
14 15 16 |
# File 'lib/rattler/rake_task.rb', line 14 def rtlr_opts @rtlr_opts end |
#verbose ⇒ Object
Returns the value of attribute verbose.
15 16 17 |
# File 'lib/rattler/rake_task.rb', line 15 def verbose @verbose end |