Class: Nanoc::Core::SnapshotDef

Inherits:
Object
  • Object
show all
Includes:
ContractsSupport
Defined in:
lib/nanoc/core/snapshot_def.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ContractsSupport

enabled?, included, setup_once, warn_about_performance

Constructor Details

#initialize(name, binary:) ⇒ SnapshotDef

Returns a new instance of SnapshotDef.



12
13
14
15
# File 'lib/nanoc/core/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/core/snapshot_def.rb', line 9

def binary
  @binary
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#binary?Boolean

Returns:

  • (Boolean)


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

def binary?
  @binary
end