Class: Faith::Namespace
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
Attributes inherited from Task
#action, #dependencies, #mixins, #name, #parent
Instance Method Summary collapse
-
#initialize(name, parent, children, mixins: [], dependencies: [], &action) ⇒ Namespace
constructor
A new instance of Namespace.
- #resolve_self! ⇒ Object
Methods inherited from Task
#child, #ensure_all_resolved, #ensure_resolved, #resolve, #run
Methods included from Named
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
#children ⇒ Object
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 |