Sha256: 18dd345126ee8bd75ff8136634380c72fc97764ddb6f71f73228ec10cf01b82b

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 Bytes

Contents

module Clone
  require 'yaml'

  ### YML control
  begin
    class Yaml
      class << self

        def set(config_hash)
            SampleConfig.yml_data = config_hash
            File.open(SampleConfig.yml_file_path, 'w+') {|f| f.write(SampleConfig.yml_data.to_yaml) }
        end

        def load(file_path=SampleConfig.yml_file_path)
            SampleConfig.yml_data = YAML.load(File.open(file_path))
        end

      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clone-1.0.0.beta2 lib/clone/config/yml.rb
clone-1.0.0.beta lib/clone/config/yml.rb