class EcoRake module Sample module Concern module Enviro include EcoRake::Sample::Concern::Base class << self def included(base) super(base) base.option '-e', '--enviro ENVIRO', default_lookup: :default_enviro end end module ClassMethods def default_enviro raise "Missing const 'DEFAULT_ENVIRO'" unless defined?(self::DEFAULT_ENVIRO) self::DEFAULT_ENVIRO end end end end end end