Class: Nanoc::Int::ProcessingAction

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

Instance Method Summary collapse

Instance Method Details

#inspectObject



13
14
15
16
17
18
19
# File 'lib/nanoc/base/entities/processing_action.rb', line 13

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

#serializeObject

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/nanoc/base/entities/processing_action.rb', line 5

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

#to_sObject

Raises:

  • (NotImplementedError)


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

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