Class: Thirsty::Requirement::Update

Inherits:
Callable
  • Object
show all
Defined in:
lib/thirsty/requirement/update.rb

Instance Method Summary collapse

Methods inherited from Callable

call

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

#callObject



12
13
14
15
16
# File 'lib/thirsty/requirement/update.rb', line 12

def call
  validate_input
  ensure_directory
  write_requirement
end