Class: Jzip::Engine::Requirement
- Inherits:
-
Struct
- Object
- Struct
- Jzip::Engine::Requirement
- Includes:
- Support::Notifier
- Defined in:
- lib/jzip/engine/requirement.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#overrule_minification ⇒ Object
Returns the value of attribute overrule_minification.
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
Methods included from Support::Notifier
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
5 6 7 |
# File 'lib/jzip/engine/requirement.rb', line 5 def file @file end |
#overrule_minification ⇒ Object
Returns the value of attribute overrule_minification
5 6 7 |
# File 'lib/jzip/engine/requirement.rb', line 5 def overrule_minification @overrule_minification end |
#source ⇒ Object
Returns the value of attribute source
5 6 7 |
# File 'lib/jzip/engine/requirement.rb', line 5 def source @source end |
#target ⇒ Object
Returns the value of attribute target
5 6 7 |
# File 'lib/jzip/engine/requirement.rb', line 5 def target @target end |
Instance Method Details
#code ⇒ Object
21 22 23 |
# File 'lib/jzip/engine/requirement.rb', line 21 def code parse end |
#newer?(mtime) ⇒ Boolean
9 10 11 12 |
# File 'lib/jzip/engine/requirement.rb', line 9 def newer?(mtime) notify "Newer '#{target_file}'" if result = mtime < File.mtime(target_file) result end |