Class: Arli::Lock::Formats::Yaml

Inherits:
Json
  • Object
show all
Defined in:
lib/arli/lock/formats/yaml.rb

Instance Attribute Summary

Attributes inherited from Json

#hash

Attributes inherited from Base

#arlifile, #lock_file

Instance Method Summary collapse

Methods inherited from Json

#format, #header

Methods inherited from Base

#extension, #format, #header, #initialize

Methods included from Helpers::Inherited

included

Constructor Details

This class inherits a constructor from Arli::Lock::Formats::Base

Instance Method Details



9
10
11
12
# File 'lib/arli/lock/formats/yaml.rb', line 9

def footer
  "# vi:syntax=yaml\n" +
  YAML.dump(hash)
end