Class: Nanoc::Int::SnapshotDef Private
- Inherits:
-
Object
- Object
- Nanoc::Int::SnapshotDef
- Includes:
- ContractsSupport
- Defined in:
- lib/nanoc/base/entities/snapshot_def.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #name ⇒ Object readonly private
Instance Method Summary collapse
- #final? ⇒ Boolean private
-
#initialize(name, is_final) ⇒ SnapshotDef
constructor
private
A new instance of SnapshotDef.
Methods included from ContractsSupport
Constructor Details
#initialize(name, is_final) ⇒ SnapshotDef
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SnapshotDef.
9 10 11 12 |
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 9 def initialize(name, is_final) @name = name @is_final = is_final end |
Instance Attribute Details
#name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 6 def name @name end |
Instance Method Details
#final? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 15 def final? @is_final end |