Class: Ddenv::Goal
- Inherits:
-
Object
show all
- Defined in:
- lib/ddenv/goal.rb
Direct Known Subclasses
Ddenv::Goals::BundleInstalled, Ddenv::Goals::GemInstalled, Ddenv::Goals::HomebrewPackageInstalled, Ddenv::Goals::NodeInstalled, Ddenv::Goals::NodeShadowenvCreated, Ddenv::Goals::NpmPackesInstalled, Ddenv::Goals::RubyInstalled, Ddenv::Goals::RubyShadowenvCreated, Ddenv::Goals::ShadowenvDirCreated, Ddenv::Goals::ShadowenvDirGitIgnored, Ddenv::Goals::ShadowenvInitialized, Ddenv::Goals::ShadowenvTrusted
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ Goal
Returns a new instance of Goal.
5
|
# File 'lib/ddenv/goal.rb', line 5
def initialize; end
|
Instance Method Details
#==(other) ⇒ Object
39
40
41
|
# File 'lib/ddenv/goal.rb', line 39
def ==(other)
self.class == other.class && props == other.props
end
|
#eql?(other) ⇒ Boolean
43
44
45
|
# File 'lib/ddenv/goal.rb', line 43
def eql?(other)
self == other
end
|
#hash ⇒ Object
47
48
49
|
# File 'lib/ddenv/goal.rb', line 47
def hash
[self.class, props].hash
end
|
#post_goals ⇒ Object
23
24
25
|
# File 'lib/ddenv/goal.rb', line 23
def post_goals
[]
end
|
#pre_goals ⇒ Object
19
20
21
|
# File 'lib/ddenv/goal.rb', line 19
def pre_goals
[]
end
|
#props ⇒ Object
35
36
37
|
# File 'lib/ddenv/goal.rb', line 35
def props
[]
end
|
#with_pre_and_post_goals ⇒ Object
27
28
29
30
31
32
33
|
# File 'lib/ddenv/goal.rb', line 27
def with_pre_and_post_goals
[
*pre_goals.flat_map(&:with_pre_and_post_goals),
self,
*post_goals.flat_map(&:with_pre_and_post_goals)
]
end
|