Class: Rant::DefaultNodeFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/rant/import/nodes/default.rb

Direct Known Subclasses

SignedNodeFactory

Instance Method Summary collapse

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

#new_task(rac, name, pre, blk) ⇒ Object



13
14
15
# File 'lib/rant/import/nodes/default.rb', line 13

def new_task(rac, name, pre, blk)
    Task.new(rac, name, pre, &blk)
end