Sha256: b2020ed8c14920715e3068d75b78a5381a13f1cb8d1d1ca42e4dd1f7fb5eb773

Contents?: true

Size: 454 Bytes

Versions: 14

Compression:

Stored size: 454 Bytes

Contents

class EcoRake
  module Options
    class Set < RakeCommander::Options::Set
      include EcoRake::Options

      #banner ''
      attr_reader :parent

      def initialize(*args, _parent: nil)
        @parent = _parent
        super(*args)
      end

      def name
        self.class.name.tap do |nm|
          raise ArgumentError, "Class #{self.class}, should have a name defined" unless nm
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
eco-rake-0.2.7 lib/eco-rake/options/set.rb
eco-rake-0.2.6 lib/eco-rake/options/set.rb
eco-rake-0.2.5 lib/eco-rake/options/set.rb
eco-rake-0.2.4 lib/eco-rake/options/set.rb
eco-rake-0.2.3 lib/eco-rake/options/set.rb
eco-rake-0.2.2 lib/eco-rake/options/set.rb
eco-rake-0.2.1 lib/eco-rake/options/set.rb
eco-rake-0.2.0 lib/eco-rake/options/set.rb
eco-rake-0.1.6 lib/eco-rake/options/set.rb
eco-rake-0.1.5 lib/eco-rake/options/set.rb
eco-rake-0.1.4 lib/eco-rake/options/set.rb
eco-rake-0.1.3 lib/eco-rake/options/set.rb
eco-rake-0.1.2 lib/eco-rake/options/set.rb
eco-rake-0.1.1 lib/eco-rake/options/set.rb