Sha256: 9626fb4879f1e83572f64360f6bad4753e949f22a92bb7dc9157e7062c3e0233

Contents?: true

Size: 569 Bytes

Versions: 14

Compression:

Stored size: 569 Bytes

Contents

module RDF
  ##
  module Durable
    ##
    # Returns `true` if `self` is durable.
    #
    # @return [Boolean]
    # @see    #nondurable?
    def durable?
      true
    end

    alias_method :persistent?, :durable?

    ##
    # Returns `true` if `self` is nondurable.
    #
    # @return [Boolean]
    # @see    #durable?
    def nondurable?
      !durable?
    end

    alias_method :ephemeral?,     :nondurable?
    alias_method :nonpersistent?, :nondurable?
    alias_method :transient?,     :nondurable?
    alias_method :volatile?,      :nondurable?
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rdf-0.1.10 lib/rdf/mixin/durable.rb
rdf-0.1.9 lib/rdf/mixin/durable.rb
rdf-0.1.8 lib/rdf/mixin/durable.rb
rdf-0.1.7 lib/rdf/mixin/durable.rb
rdf-0.1.6.1 lib/rdf/mixin/durable.rb
rdf-0.1.6 lib/rdf/mixin/durable.rb
rdf-0.1.5 lib/rdf/mixin/durable.rb
rdf-0.1.4 lib/rdf/mixin/durable.rb
rdf-0.1.3 lib/rdf/mixin/durable.rb
rdf-0.1.2 lib/rdf/mixin/durable.rb
rdf-0.1.1 lib/rdf/mixin/durable.rb
rdf-0.1.0 lib/rdf/mixin/durable.rb
rdf-0.0.9 lib/rdf/mixin/durable.rb
rdf-0.0.8 lib/rdf/mixin/durable.rb