Class: Nanoc::Core::SnapshotDef
- Inherits:
-
Object
- Object
- Nanoc::Core::SnapshotDef
- Includes:
- ContractsSupport
- Defined in:
- lib/nanoc/core/snapshot_def.rb
Instance Attribute Summary collapse
-
#binary ⇒ Object
readonly
Returns the value of attribute binary.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #binary? ⇒ Boolean
-
#initialize(name, binary:) ⇒ SnapshotDef
constructor
A new instance of SnapshotDef.
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
#binary ⇒ Object (readonly)
Returns the value of attribute binary.
9 10 11 |
# File 'lib/nanoc/core/snapshot_def.rb', line 9 def binary @binary end |
#name ⇒ Object (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
17 18 19 |
# File 'lib/nanoc/core/snapshot_def.rb', line 17 def binary? @binary end |