Class: Faith::Namespace

Inherits:
Task
  • Object
show all
Defined in:
lib/faith/namespace.rb

Direct Known Subclasses

Group, Sequence

Instance Attribute Summary collapse

Attributes inherited from Task

#action, #dependencies, #mixins, #name, #parent

Instance Method Summary collapse

Methods inherited from Task

#child, #ensure_all_resolved, #ensure_resolved, #resolve, #run

Methods included from Named

#full_name, #root?

Constructor Details

#initialize(name, parent, children, mixins: [], dependencies: [], &action) ⇒ Namespace

Returns a new instance of Namespace.



3
4
5
6
# File 'lib/faith/namespace.rb', line 3

def initialize(name, parent, children, mixins: [], dependencies: [], &action)
  super(name, parent, mixins: mixins, dependencies: dependencies, &action)
  @children = children
end

Instance Attribute Details

#childrenObject

Returns the value of attribute children.



8
9
10
# File 'lib/faith/namespace.rb', line 8

def children
  @children
end

Instance Method Details

#resolve_self!Object



10
11
12
13
# File 'lib/faith/namespace.rb', line 10

def resolve_self!
  super
  children.each(&:resolve_self!)
end