Class: Nanoc::Core::ProcessingAction

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

Instance Method Summary collapse

Instance Method Details

#inspectObject



14
15
16
17
18
19
20
# File 'lib/nanoc/core/processing_action.rb', line 14

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

#serializeObject

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/nanoc/core/processing_action.rb', line 6

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

#to_sObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/nanoc/core/processing_action.rb', line 10

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