module BashBuilderHelper include RoCommands::RoHelper class << self def included(base) base.extend(ClsMeths) end end module ClsMeths include RoCommands::RoHelper::ClassMethods def is_helper?(meth) ::BashBuilderHelper.meths.include?(meth) end def ctn @ctn ||= "" end def after_each content << @ctn end def content @content.uniq! if @content.respond_to?(:uniq!) @content ||= [] end def target File.join($root, 'ro_commands.sh') end end end