Sha256: 3166649fa533bc65cd1eb672e1e82882b2dd52bd11a32bcd6f98301eaec6ecd4

Contents?: true

Size: 505 Bytes

Versions: 31

Compression:

Stored size: 505 Bytes

Contents

module Mobility
  module Backends
=begin

Backend which does absolutely nothing. Mostly for testing purposes.

=end
    class Null
      include Backend

      # @!group Backend Accessors
      # @return [NilClass]
      def read(_locale, _options = nil); end

      # @return [NilClass]
      def write(_locale, _value, _options = nil); end
      # @!endgroup

      # @!group Backend Configuration
      def self.configure(_); end
      # @!endgroup
    end

    register_backend(:null, Null)
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
mobility-1.0.6 lib/mobility/backends/null.rb
mobility-1.0.5 lib/mobility/backends/null.rb
mobility-1.0.4 lib/mobility/backends/null.rb
mobility-1.0.3 lib/mobility/backends/null.rb
mobility-1.0.2 lib/mobility/backends/null.rb
mobility-1.0.1 lib/mobility/backends/null.rb
mobility-1.0.0 lib/mobility/backends/null.rb
mobility-1.0.0.rc1 lib/mobility/backends/null.rb
mobility-1.0.0.beta2 lib/mobility/backends/null.rb
mobility-1.0.0.beta1 lib/mobility/backends/null.rb
mobility-1.0.0.alpha lib/mobility/backends/null.rb