Class: SshyGuy::Screen

Inherits:
Object
  • Object
show all
Defined in:
lib/sshyguy/screen.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Screen

Returns a new instance of Screen.



10
11
12
13
# File 'lib/sshyguy/screen.rb', line 10

def initialize(options)
  @options = options
  @prompt = Prompt.new
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/sshyguy/screen.rb', line 9

def options
  @options
end

#promptObject (readonly)

Returns the value of attribute prompt.



9
10
11
# File 'lib/sshyguy/screen.rb', line 9

def prompt
  @prompt
end

Class Method Details

.show(options) ⇒ Object



5
6
7
# File 'lib/sshyguy/screen.rb', line 5

def self.show(options)
  new(options).show
end

Instance Method Details

#showObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/sshyguy/screen.rb', line 15

def show
  raise NotImplementedError
end