Sha256: 25575da755d0682c062af249fc7950a34ef8c164adc3300fb0f20b312733d031

Contents?: true

Size: 761 Bytes

Versions: 4

Compression:

Stored size: 761 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

# encoding=utf-8

class ExecutionStreams
  StdErr = :stderr
  StdIn  = :stdin
  StdOut = :stdout
end

class LoadFile
  Load = true
  Reuse = false
end

LoadFileNextBlock = Struct.new(:load_file, :next_block)

class MenuControl
  Fresh = false
  Repeat = true
end

class MenuOptions
  YES = 1
  NO = 2
  SCRIPT_TO_CLIPBOARD = 3
  SAVE_SCRIPT = 4
end

class MenuState
  BACK = :back
  CONTINUE = :continue
  EXIT = :exit
end

# selected block and subsequent menu state
#
SelectedBlockMenuState = Struct.new(:block, :state)

SHELL_COLOR_OPTIONS = {
  BlockType::BASH => :menu_bash_color,
  BlockType::LINK => :menu_link_color,
  BlockType::OPTS => :menu_opts_color,
  BlockType::VARS => :menu_vars_color
}.freeze

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
markdown_exec-1.8.2 lib/constants.rb
markdown_exec-1.8.1 lib/constants.rb
markdown_exec-1.8 lib/constants.rb
markdown_exec-1.7 lib/constants.rb