Class: Nanoc::Int::SnapshotDef

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc/base/entities/snapshot_def.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, is_final) ⇒ SnapshotDef

Returns a new instance of SnapshotDef



6
7
8
9
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 6

def initialize(name, is_final)
  @name = name
  @is_final = is_final
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



4
5
6
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 4

def name
  @name
end

Instance Method Details

#final?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 11

def final?
  @is_final
end