Sha256: 18a0fc97c3ebda84410e7be02bd2e0f980ca7c6de0ede79a2a088a253d0b0e68

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

# encoding: utf-8
module FeduxOrgStdlib
  module Plugins
    # Placeholder when no associated gem found, displays warning
    class NoPlugin
      private

      attr_reader :name

      public

      def initialize(name)
        @name = name
      end

      def method_missing(*args)
        warn "Warning: The plugin '#{name}' was not found! (no gem found)"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.6.54 lib/fedux_org_stdlib/plugins/no_plugin.rb
fedux_org-stdlib-0.6.53 lib/fedux_org_stdlib/plugins/no_plugin.rb
fedux_org-stdlib-0.6.52 lib/fedux_org_stdlib/plugins/no_plugin.rb