Class: Ibex::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Ibex::RakeTask
- Defined in:
- lib/ibex/rake_task.rb
Overview
Declares grammar-to-parser generation in a Rakefile.
Instance Attribute Summary collapse
-
#action_source ⇒ Object
: String | true | nil.
-
#grammar ⇒ Object
: String?.
-
#options ⇒ Object
: Array.
-
#output ⇒ Object
: String?.
Instance Method Summary collapse
-
#initialize(name, &configuration) ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(name, &configuration) ⇒ RakeTask
Returns a new instance of RakeTask.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/ibex/rake_task.rb', line 33 def initialize(name, &configuration) super() @name = name @grammar = nil @output = name.to_s.end_with?(".rb") ? name.to_s : nil @options = [] @action_source = nil configuration&.call(self) define end |
Instance Attribute Details
#action_source ⇒ Object
: String | true | nil
30 31 32 |
# File 'lib/ibex/rake_task.rb', line 30 def action_source @action_source end |
#grammar ⇒ Object
: String?
27 28 29 |
# File 'lib/ibex/rake_task.rb', line 27 def grammar @grammar end |
#output ⇒ Object
: String?
28 29 30 |
# File 'lib/ibex/rake_task.rb', line 28 def output @output end |