Class: Forematter::Commands::Unset

Inherits:
Forematter::CommandRunner show all
Defined in:
lib/forematter/commands/unset.rb

Instance Method Summary collapse

Methods inherited from Forematter::CommandRunner

#call

Instance Method Details

#runObject



11
12
13
14
15
16
# File 'lib/forematter/commands/unset.rb', line 11

def run
  files_with(field).each do |file|
    file.delete(field)
    file.write
  end
end