Class: FFI::Generator::Task
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- FFI::Generator::Task
- Defined in:
- lib/generator/generatortask.rb
Instance Attribute Summary collapse
-
#input_fn ⇒ Object
Returns the value of attribute input_fn.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Task
Returns a new instance of Task.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generator/generatortask.rb', line 7 def initialize( = {}, &blk) @options = { :input_fn => '*.i', :output_dir => 'generated/' }.merge() @input_fn = @options[:input_fn] @output_dir = @options[:output_dir] yield self if block_given? namespace 'ffi' do define_generate_task define_clean_task end end |
Instance Attribute Details
#input_fn ⇒ Object
Returns the value of attribute input_fn.
6 7 8 |
# File 'lib/generator/generatortask.rb', line 6 def input_fn @input_fn end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
6 7 8 |
# File 'lib/generator/generatortask.rb', line 6 def output_dir @output_dir end |