Class: Nanoc::Int::RuleMemoryAction Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#inspectObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
14
15
16
17
# File 'lib/nanoc/base/entities/rule_memory_action.rb', line 11

def inspect
  format(
    '<%s %s>',
    self.class.to_s,
    serialize[1..-1].map(&:inspect).join(', '),
  )
end

#serializeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)


3
4
5
# File 'lib/nanoc/base/entities/rule_memory_action.rb', line 3

def serialize
  raise NotImplementedError.new('Nanoc::RuleMemoryAction subclasses must implement #serialize and #to_s')
end

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)


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

def to_s
  raise NotImplementedError.new('Nanoc::RuleMemoryAction subclasses must implement #serialize and #to_s')
end