Sha256: 1854a2f991a29f6229bf6901f93ea38f8250a9e63bed4c18a19a9bd64b030c88

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

# -*- coding: utf-8; -*-
#
# WassrFeed::RCfile
#
# Copyright (C) 2012 TADA Tadashi <t@tdtds.jp>
# You can redistribute it and/or modify it under GPL.
#

module WassrFeed
	module RCfile
		RCFILE = "#{ENV['HOME']}/.wassrfeedrc"
	
		module_function
		def load
			begin
				YAML::load( open( RCFILE, &:read ) )
			rescue Errno::ENOENT
				{
					:latest => {
					}
				}
			end
		end
	
		def save( conf )
			open( RCFILE, 'w' ) {|f| f.write conf.to_yaml }
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wassrfeed-0.0.1 lib/wassrfeed/rcfile.rb