Sha256: c8031e876748e78a7c6509c1bd89901a0345a87694e5eaf2eb3e9f4ff1a4961b
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
require 'stringio' require 'java-properties/version' require 'java-properties/properties' require 'java-properties/encoding' require 'java-properties/parsing' require 'java-properties/generating' # A module to read and write Java properties files module JavaProperties # Parses the content of a Java properties file # @see Parsing::Parser # @param text [String] # @return [Properties] def self.parse(text) Parsing::Parser.parse(text) end # Generates the content of a Java properties file # @see Generating::Generator # @param hash [Hash] # @return [String] def self.generate(hash) Generating::Generator.generate(hash) end # Loads and parses a Java properties file # @see Parsing::Parser # @param path [String] # @return [Properties] def self.load(path) parse(File.read(path)) end # Generates a Java properties file # @see Generating::Generator # @param hash [Hash] # @param path [String] def self.write(hash, path) File.write(path, generate(hash)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
java-properties-0.0.1 | lib/java-properties.rb |