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.3.1 lib/mobility/backends/null.rb
mobility-1.3.0 lib/mobility/backends/null.rb
mobility-1.3.0.rc3 lib/mobility/backends/null.rb
mobility-1.3.0.rc2 lib/mobility/backends/null.rb
mobility-1.3.0.rc1 lib/mobility/backends/null.rb
mobility-1.2.9 lib/mobility/backends/null.rb
mobility-1.2.8 lib/mobility/backends/null.rb
mobility-1.2.7 lib/mobility/backends/null.rb
mobility-1.2.6 lib/mobility/backends/null.rb
mobility-1.2.5 lib/mobility/backends/null.rb
mobility-1.2.4 lib/mobility/backends/null.rb
mobility-1.2.3 lib/mobility/backends/null.rb
mobility-1.2.2 lib/mobility/backends/null.rb
mobility-1.2.1 lib/mobility/backends/null.rb
mobility-1.2.0 lib/mobility/backends/null.rb
mobility-1.1.3 lib/mobility/backends/null.rb
mobility-1.1.2 lib/mobility/backends/null.rb
mobility-1.1.1 lib/mobility/backends/null.rb
mobility-1.1.0 lib/mobility/backends/null.rb
mobility-1.0.7 lib/mobility/backends/null.rb