Class: Thirsty::Requirement::Update
- Defined in:
- lib/thirsty/requirement/update.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(requirement) ⇒ Update
constructor
A new instance of Update.
Methods inherited from Callable
Constructor Details
#initialize(requirement) ⇒ Update
Returns a new instance of Update.
8 9 10 |
# File 'lib/thirsty/requirement/update.rb', line 8 def initialize(requirement) @requirement = requirement end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/thirsty/requirement/update.rb', line 12 def call validate_input ensure_directory write_requirement end |