Sha256: 49fa3b41c0837f1cb32719b5afa659c9883a155a3174da111e0b49b06a54983c

Contents?: true

Size: 464 Bytes

Versions: 20

Compression:

Stored size: 464 Bytes

Contents

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

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

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
nanoc-4.3.8 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.7 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.6 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.5 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.4 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.3 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.2 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.1 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.3.0 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.2.4 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.2.3 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.2.2 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.2.1 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.2.0 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.1.6 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.2.0b1 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.1.5 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.1.4 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.1.3 lib/nanoc/base/entities/rule_memory_action.rb
nanoc-4.1.2 lib/nanoc/base/entities/rule_memory_action.rb