Module: Antimony

Defined in:
lib/antimony.rb,
lib/antimony/config.rb,
lib/antimony/formula.rb,
lib/antimony/session.rb

Defined Under Namespace

Classes: Config, Formula, Session

Constant Summary collapse

ANSI_REGEX =

Constants

/(\e\[.{1,2};?.{0,2}m|\e\[.{1}J|\e\[.{1,2}A|\e\[.{1,2}B|\e\[.{1,2}C|\e\[.{1,2}D|\e\[K|\e\[.{1,2};.{1,2}H|\e\[.{3}|.)/
SCREEN_SEPARATOR =
'################################################################################'.freeze
LOG_SEPARATOR =
'================================================================================'.freeze
SPACE =
' '.freeze
EMPTY =
''.freeze
RECEIVE_OPTS =
{ 'Match' => /.{20}/, 'Timeout' => 1 }.freeze
ENTER =
"\n".freeze
TAB =
"\t".freeze
ESCAPE =
"\e".freeze
H =
'H'.freeze
SEMICOLON =
';'.freeze
LINE =
/.{80}/

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



24
25
26
# File 'lib/antimony.rb', line 24

def self.configuration
  @configuration ||= Antimony::Config.new.tap { |config| config.show_output = false }
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



28
29
30
# File 'lib/antimony.rb', line 28

def self.configure
  yield configuration if block_given?
end