Sha256: 186387ec7fb233ddc0fa84706c874283e8efb294bd970906933e405d58698049

Contents?: true

Size: 353 Bytes

Versions: 19

Compression:

Stored size: 353 Bytes

Contents

module Nanoc
  module Int
    class SnapshotDef
      include Nanoc::Int::ContractsSupport

      attr_reader :name

      contract Symbol, C::Bool => C::Any
      def initialize(name, is_final)
        @name = name
        @is_final = is_final
      end

      contract C::None => C::Bool
      def final?
        @is_final
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
nanoc-4.4.5 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.4.4 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.4.3 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.4.2 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.4.1 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.4.0 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.8 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.7 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.6 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.5 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.4 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.3 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.2 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.1 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.3.0 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.2.4 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.2.3 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.2.2 lib/nanoc/base/entities/snapshot_def.rb
nanoc-4.2.1 lib/nanoc/base/entities/snapshot_def.rb