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



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

#nameObject (readonly)

Returns the value of attribute name



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

def name
  @name
end

Instance Method Details

#final?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 15

def final?
  @is_final
end