Sha256: 63ef50bef2e92175a03ab9ea2ef375c163d95a2f8edb746e6c6d7a743b41ddfc
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
module Mayl # Public: Represents the global state with the loaded locales, and has the # ability to save locales to disk. class Env attr_reader :locales attr_accessor :last_value attr_accessor :namespace # Public: Initializes a new Env loading the locales from a path. def initialize(path) @locales = Loader.load(path) @last_value = nil @namespace = "" end # Public: Saves any changes to disk. def commit @locales.each(&:commit) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mayl-0.1.0 | lib/mayl/env.rb |
mayl-0.0.1 | lib/mayl/env.rb |