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