Exception: Net::TFTPProtocol

Inherits:
TFTPError
  • Object
show all
Defined in:
lib/net/tftp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ TFTPProtocol

Returns a new instance of TFTPProtocol.



47
48
49
50
# File 'lib/net/tftp.rb', line 47

def initialize(msg, code)
  super(msg)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



46
47
48
# File 'lib/net/tftp.rb', line 46

def code
  @code
end