Module: RoHelpers::BashBuilderHelper::ClsMeths

Includes:
RoHelper::ClassMethods
Defined in:
lib/bash_builder_helper.rb

Instance Method Summary collapse

Methods included from RoHelper::ClassMethods

#def_meth, #meth_feature, #method_added, #meths, #singleton_method_added

Instance Method Details

#after_eachObject



22
23
24
# File 'lib/bash_builder_helper.rb', line 22

def after_each
  content << @ctn
end

#contentObject



26
27
28
29
# File 'lib/bash_builder_helper.rb', line 26

def content
  @content.uniq! if @content.respond_to?(:uniq!)
  @content ||= []
end

#ctnObject



18
19
20
# File 'lib/bash_builder_helper.rb', line 18

def ctn
  @ctn ||= ""
end

#is_helper?(meth) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/bash_builder_helper.rb', line 14

def is_helper?(meth)
  ::BashBuilderHelper.meths.include?(meth)
end

#targetObject



31
32
33
# File 'lib/bash_builder_helper.rb', line 31

def target
  File.join(RoCommands.root, 'ro_commands.sh')
end