class Cookbooks::AllowedCookbookEntries
Constants
- COLOURIZE_THE_FIRST_CHARACTER
#¶ ↑
Cookbooks::AllowedCookbookEntries::COLOURIZE_THE_FIRST_CHARACTER¶ ↑
#¶ ↑
- 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
#¶ ↑
::report_allowed_entries¶ ↑
#¶ ↑
# File lib/cookbooks/utility_scripts/allowed_cookbook_entries.rb, line 56 def self.report_allowed_entries e; opnn; e 'The following entries are registered in the file ' opnn; e ::Cookbooks.sfile('registered_cookbook_entries.rb')+', in the ' opnn; e 'constant '+::Cookbooks.simp('REGISTERED_COOKBOOK_ENTRIES')+', and thus '\ 'valid:'; e REGISTERED_COOKBOOK_ENTRIES.each_with_index {|entry, index| index += 1 if COLOURIZE_THE_FIRST_CHARACTER entry[0,1] = ::Cookbooks.swarn(entry[0,1]) # Make the first character red. end e ::Cookbooks.sfancy(index.to_s.rjust(3))+') '+entry }; e # Need to output a terminating-newline here for consistency with the above. end