Class: Rant::DefaultNodeFactory
- Defined in:
- lib/rant/import/nodes/default.rb
Direct Known Subclasses
Instance Method Summary collapse
- #new_auto_subfile(rac, name, pre, blk) ⇒ Object
- #new_custom(rac, name, pre, blk) ⇒ Object
- #new_dir(rac, name, pre, blk) ⇒ Object
- #new_file(rac, name, pre, blk) ⇒ Object
- #new_source(rac, name, pre, blk) ⇒ Object
- #new_task(rac, name, pre, blk) ⇒ Object
Instance Method Details
#new_auto_subfile(rac, name, pre, blk) ⇒ Object
28 29 30 |
# File 'lib/rant/import/nodes/default.rb', line 28 def new_auto_subfile(rac, name, pre, blk) AutoSubFileTask.new(rac, name, pre, &blk) end |
#new_custom(rac, name, pre, blk) ⇒ Object
25 26 27 |
# File 'lib/rant/import/nodes/default.rb', line 25 def new_custom(rac, name, pre, blk) UserTask.new(rac, name, pre, &blk) end |
#new_dir(rac, name, pre, blk) ⇒ Object
19 20 21 |
# File 'lib/rant/import/nodes/default.rb', line 19 def new_dir(rac, name, pre, blk) DirTask.new(rac, name, pre, &blk) end |
#new_file(rac, name, pre, blk) ⇒ Object
16 17 18 |
# File 'lib/rant/import/nodes/default.rb', line 16 def new_file(rac, name, pre, blk) FileTask.new(rac, name, pre, &blk) end |
#new_source(rac, name, pre, blk) ⇒ Object
22 23 24 |
# File 'lib/rant/import/nodes/default.rb', line 22 def new_source(rac, name, pre, blk) SourceNode.new(rac, name, pre, &blk) end |