Class: Roebe::GUI::Sinatra::Md5Comparer

Inherits:
Cyberweb::Sinatra
  • Object
show all
Extended by:
Cyberweb::Sinatra::CustomExtensions
Includes:
Cyberweb::Objectified::HtmlTags, Cyberweb::Sinatra::CustomExtensions, Md5ComparerModule
Defined in:
lib/roebe/gui/sinatra/md5_comparer/md5_comparer.rb

Overview

Roebe::GUI::Sinatra::Md5Comparer

Constant Summary collapse

USE_THIS_PORT =
#

USE_THIS_PORT

#
'4567'

Instance Method Summary collapse

Constructor Details

#initialize(optional_commandline_arguments = ARGV) ⇒ Md5Comparer

#

initialize

#


42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/roebe/gui/sinatra/md5_comparer/md5_comparer.rb', line 42

def initialize(
    optional_commandline_arguments = ARGV
  )
  require 'cyberweb/sinatra/base/set_use_this_port.rb'
  ::Cyberweb::Sinatra.set_use_this_port(USE_THIS_PORT)
  shall_we_open_via_the_browser = true
  _ = optional_commandline_arguments
  if _.is_a?(Array) and !_.empty?
    first = _.first
    case first
    # ===================================================================== #
    # === :do_not_open_via_the_browser
    # ===================================================================== #
    when :do_not_open_via_the_browser
      shall_we_open_via_the_browser = false
    end
  elsif _.is_a? Symbol
    case _
    when :do_not_open_via_the_browser
      shall_we_open_via_the_browser = false
    end
  end
  super(
    optional_commandline_arguments,
    :default,
    shall_we_open_via_the_browser
  )
  reset
end

Instance Method Details

#resetObject

#

reset

#


75
76
# File 'lib/roebe/gui/sinatra/md5_comparer/md5_comparer.rb', line 75

def reset
end