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, binary:) ⇒ SnapshotDef

Returns a new instance of SnapshotDef



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

def initialize(name, binary:)
  @name = name
  @binary = binary
end

Instance Attribute Details

#binaryObject (readonly)

Returns the value of attribute binary



9
10
11
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 9

def binary
  @binary
end

#nameObject (readonly)

Returns the value of attribute name



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

def name
  @name
end

Instance Method Details

#binary?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/nanoc/base/entities/snapshot_def.rb', line 17

def binary?
  @binary
end