class RBT::BeautifySystem
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
- USE_THIS_AS_DEFAULT_INPUT
#¶ ↑
RBT::BeautifySystem::USE_THIS_AS_DEFAULT_INPUT
¶ ↑#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
Public Instance Methods
do_compile(i)
click to toggle source
#¶ ↑
do_compile
¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/beautify_system.rb, line 155 def do_compile(i) if i.is_a? String i.strip! if i.include? N i = i.split(N) end end if i.is_a? String i = [i] end i.map!(&:strip) i.reject!(&:empty?) i.each {|entry| begin RBT::Compile.new(entry.strip) rescue SystemExit opnn; e 'User requested to exit, thus we will exit now.' exit rescue Exception => error opnn; e 'An error was encountered:' pp error pp error.class end } end
input?()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
RBT::Base#reset
# File lib/rbt/utility_scripts/beautify_system.rb, line 77 def reset super() @use_this_as_default_input = USE_THIS_AS_DEFAULT_INPUT # ===================================================================== # # Add some aliases there. # ===================================================================== # chained_programs = RBT.chained_programs # ===================================================================== # # You can add more aliases to this entry. # ===================================================================== # array_add_these_aliases_from_the_chained_programs = %w( autotools audio_suite audio_suite2 cfamily_addons alsa editors perl video_base video_suite metagtkmm databases fluxbox graphics_suite irc my_python sdl viewers xml ruby_addons xorg_protos xorg_utils xorg_libraries xorg_data xorg_apps xorg_fonts xorg_server terminals all_of_the_mate_desktop kde5_foundation kde5_plasma kde5_porting_aids kde5_applications xfce ) array_add_these_aliases_from_the_chained_programs.each {|entry| add_this = chained_programs[entry].strip.tr(',',N) @use_this_as_default_input << add_this } @namespace = NAMESPACE end
run()
click to toggle source