Sha256: 44289d4530e8de1aeb0f4151451a591e720021d737f288f9f7a5bea644f61542
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
module RoHelpers 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ro_commands-0.0.3 | lib/bash_builder_helper.rb |
ro_commands-0.0.2 | lib/bash_builder_helper.rb |