module RoHelpers module BashBuilderHelper include RoHelpers::RoHelper class << self def included(base) base.extend(ClsMeths) end end module ClsMeths include RoHelpers::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(RoCommands.root, 'ro_commands.sh') end end end end