Sha256: 5304f4a6866211e84dc478a7b544fd202c067c7d279921cef6f28698fe666aa0

Contents?: true

Size: 681 Bytes

Versions: 14

Compression:

Stored size: 681 Bytes

Contents

class EcoRake
  module Sample
    module Concern
      # It adds the configurable option person schema
      module PersonSchema
        include EcoRake::Sample::Concern::Base

        class << self
          def included(base)
            super(base)
            base.option '-c', '--schema NAME', default_lookup: :default_person_schema, desc: "Target person schema."
          end
        end

        module ClassMethods
          def default_person_schema
            raise "Missing const 'DEFAULT_PERSON_SCHEMA'" unless defined?(self::DEFAULT_PERSON_SCHEMA)
            self::DEFAULT_PERSON_SCHEMA
          end
        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/lib/concern/person_schema.rb
eco-rake-0.2.6 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.2.5 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.2.4 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.2.3 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.2.2 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.2.1 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.2.0 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.1.6 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.1.5 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.1.4 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.1.3 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.1.2 lib/eco-rake/lib/concern/person_schema.rb
eco-rake-0.1.1 lib/eco-rake/lib/concern/person_schema.rb