class RBT::Cookbooks::AllowedCookbookEntries
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
e(i = '')
click to toggle source
new( run_already = true )
click to toggle source
opnn()
click to toggle source
report_allowed_entries()
click to toggle source
#¶ ↑
RBT::Cookbooks::AllowedCookbookEntries.report_allowed_entries
¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/allowed_cookbook_entries.rb, line 61 def self.report_allowed_entries e; opnn; e 'The following entries are registered in the file ' opnn; e RBT.sfile('registered_cookbook_entries.rb')+', in the ' opnn; e 'constant '+RBT.simp('REGISTERED_COOKBOOK_ENTRIES')+', and '\ 'thus valid:'; e REGISTERED_COOKBOOK_ENTRIES.each_with_index {|entry, index| index += 1 colourized_and_padded_index = RBT.sfancy(index.to_s.rjust(3)) entry = mediumaquamarine(entry) e colourized_and_padded_index+') '+entry }; e # Need to output a terminating-newline here for consistency with the above. end
Public Instance Methods
reset()
click to toggle source