Class: Klenod::Build::AssetUpdate
- Inherits:
-
Data
- Object
- Data
- Klenod::Build::AssetUpdate
- Defined in:
- lib/klenod/build/invalidation_result.rb
Instance Attribute Summary collapse
-
#current_asset ⇒ Object
readonly
Returns the value of attribute current_asset.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#previous_asset ⇒ Object
readonly
Returns the value of attribute previous_asset.
Instance Method Summary collapse
Instance Attribute Details
#current_asset ⇒ Object (readonly)
Returns the value of attribute current_asset
5 6 7 |
# File 'lib/klenod/build/invalidation_result.rb', line 5 def current_asset @current_asset end |
#output_path ⇒ Object (readonly)
Returns the value of attribute output_path
5 6 7 |
# File 'lib/klenod/build/invalidation_result.rb', line 5 def output_path @output_path end |
#previous_asset ⇒ Object (readonly)
Returns the value of attribute previous_asset
5 6 7 |
# File 'lib/klenod/build/invalidation_result.rb', line 5 def previous_asset @previous_asset end |
Instance Method Details
#added? ⇒ Boolean
6 7 8 |
# File 'lib/klenod/build/invalidation_result.rb', line 6 def added? previous_asset.nil? && !current_asset.nil? end |
#changed? ⇒ Boolean
10 11 12 |
# File 'lib/klenod/build/invalidation_result.rb', line 10 def changed? !previous_asset.nil? && !current_asset.nil? end |
#removed? ⇒ Boolean
14 15 16 |
# File 'lib/klenod/build/invalidation_result.rb', line 14 def removed? !previous_asset.nil? && current_asset.nil? end |