Sha256: 17d176b8312b2f451eedda2ff8a15e52623400d7614f31775687255171f0a72d
Contents?: true
Size: 604 Bytes
Versions: 18
Compression:
Stored size: 604 Bytes
Contents
module Datacaster module I18nValues class Scope < Base attr_reader :scope def initialize(scope, args = {}) @scope = scope @args = args end def ==(other) super && @scope == other.scope end def resolve raise RuntimeError.new("Tried to resolve i18n scope #{@scope.inspect}. Use #i18n_key in addition to #i18n_scope.") end def with_args(args) self.class.new(@scope, @args.merge(args)) end def inspect "#<#{self.class.name}(#{@scope.inspect}) #{@args.inspect}>" end end end end
Version data entries
18 entries across 18 versions & 1 rubygems