module DependencyGrapher::SerializeHelpers

Public Class Methods

deserialize(string) click to toggle source
# File lib/dependency_grapher/serialize_helpers.rb, line 12
def self.deserialize(string)
  self.from_yaml(string)
end

Private Class Methods

from_yaml(yaml_string) click to toggle source
# File lib/dependency_grapher/serialize_helpers.rb, line 21
def self.from_yaml(yaml_string)
  YAML.load(yaml_string)
end

Public Instance Methods

serialize() click to toggle source
# File lib/dependency_grapher/serialize_helpers.rb, line 8
def serialize
  to_yaml
end

Private Instance Methods

to_yaml() click to toggle source
# File lib/dependency_grapher/serialize_helpers.rb, line 17
def to_yaml
  YAML.dump(self)
end