Sha256: 1c3d2f9d83465281d00c40ec9f59bcf2027009caebdfbaef434f0f4d9725599b

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

module Tataru
  module Instructions
    # instructions that deal with resources
    class ResourceInstruction < Instruction
      expects :resource_name
      expects :resource_desc

      def desc
        Kernel.const_get(resource_desc).new
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tataru-0.2.0 lib/tataru/instructions/resource_instruction.rb