Class: Rack::Padlock::PadlockFile
- Inherits:
-
Object
- Object
- Rack::Padlock::PadlockFile
- Defined in:
- lib/rack/padlock.rb
Class Method Summary collapse
Class Method Details
.write(file, violation) ⇒ Object
83 84 85 |
# File 'lib/rack/padlock.rb', line 83 def self.write(file, violation) ::File.open(file, 'a+') { |file| file.puts violation.strip } end |