Sha256: 203b07340705ee0216928239d89b614f922a4f7c0c1c6e43091c229b7322b76d

Contents?: true

Size: 363 Bytes

Versions: 12

Compression:

Stored size: 363 Bytes

Contents

module Datacaster
  module Runtimes
    class I18n < Base
      attr_reader :args

      def initialize(*)
        super
        @args = {}

        @reserved_instance_variables += instance_variables
      end

      def i18n_var!(name, value)
        @args[name] = value
      end

      def i18n_vars!(map)
        @args.merge!(map)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datacaster-4.1.0 lib/datacaster/runtimes/i18n.rb
datacaster-4.0.1 lib/datacaster/runtimes/i18n.rb
datacaster-3.3.1 lib/datacaster/runtimes/i18n.rb
datacaster-3.3.0 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.7 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.6 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.5 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.4 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.3 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.2 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.1 lib/datacaster/runtimes/i18n.rb
datacaster-3.2.0 lib/datacaster/runtimes/i18n.rb