Sha256: e142c22111d99c8aeb7f8752214fd9711e2b257fdcf31b552f95ebe5510922cf

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

module Tataru
  # delete subroutines
  module DeleteSubroutines
    def delete_instructions
      return [] if desc.delete_at_end?

      [
        *load_resource_instructions,
        :delete
      ]
    end

    def check_delete_instructions
      return [] if desc.delete_at_end?

      [
        *load_resource_instructions,
        :check_delete
      ]
    end

    def commit_delete_instructions
      return [] unless desc.delete_at_end?

      [
        *load_resource_instructions,
        :delete
      ]
    end

    def finish_delete_instructions
      return [] unless desc.delete_at_end?

      [
        *load_resource_instructions,
        :check_delete
      ]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tataru-0.2.0 lib/tataru/delete_subroutines.rb