Sha256: c6f09e8bac423f4d7487f1f10d7c9c18c1307481d16c362f2a077b908c5a26f2

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

module Redbreast
    module IO
      class Config
  
        CONFIG_FILE_PATH = "#{Dir.pwd}/.redbrest.yml".freeze
  
        class << self
          def write(data)
            File.open(CONFIG_FILE_PATH, 'w') { |file| YAML.dump(data, file) }
          end
  
          def read
            YAML.load_file(CONFIG_FILE_PATH)
          end
        end
        
      end
    end
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redbreast-0.1.2 lib/redbreast/io/config.rb
redbreast-0.1.1 lib/redbreast/io/config.rb
redbreast-0.1.0 lib/redbreast/io/config.rb