Sha256: b29c15dc3acef83cb32cb127eeac9026fa8989f9313c0df085eb5cf087b24a22
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true # encoding=utf-8 require 'shellwords' public BF = 'bin' # display_level values DISPLAY_LEVEL_BASE = 0 # required output DISPLAY_LEVEL_ADMIN = 1 DISPLAY_LEVEL_DEBUG = 2 DISPLAY_LEVEL_DEFAULT = DISPLAY_LEVEL_ADMIN DISPLAY_LEVEL_MAX = DISPLAY_LEVEL_DEBUG # @execute_files[ind] = @execute_files[ind] + [block] EF_STDOUT = 0 EF_STDERR = 1 EF_STDIN = 2 LOCAL_YML = 'menu.yml' MENU_YML = "lib/#{LOCAL_YML}" def menu_from_yaml YAML.load File.open(File.join(File.expand_path(__dir__), LOCAL_YML)) end # skip :reek:UtilityFunction def value_for_cli(value) case value.class.to_s when 'String' Shellwords.escape value when 'FalseClass', 'TrueClass' value ? '1' : '0' else Shellwords.escape value.to_s end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markdown_exec-1.3.0 | lib/shared.rb |