File: youplot.rb

package info (click to toggle)
youplot 0.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: ruby: 1,325; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 681 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

require_relative 'youplot/version'
require_relative 'youplot/dsv'
require_relative 'youplot/parameters'
require_relative 'youplot/command'

module YouPlot
  # @run_as_executable = true / false
  # YouPlot behaves slightly differently when run as a command line tool
  # and when run as a script (e.g. for testing). In the event of an error,
  # when run as a command line tool, YouPlot will display a short error message
  # and exit abnormally. When run as a script, it will just raise an error.
  @run_as_executable = false
  class << self
    attr_accessor :run_as_executable

    def run_as_executable?
      @run_as_executable
    end
  end
end