class EcoRake module Sample module Concern module LocalFolder include EcoRake::Sample::Concern::Base class << self def included(base) super(base) base.option '-d', '--folder NAME', default_lookup: :default_local_folder, desc: 'Source local folder' end end module ClassMethods def default_local_folder return '.' unless defined?(self::DEFAULT_LOCAL_FOLDER) self::DEFAULT_LOCAL_FOLDER end end end end end end