Exception: Net::TFTPProtocol
- Defined in:
- lib/net/tftp.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ TFTPProtocol
constructor
A new instance of TFTPProtocol.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
46 47 48 |
# File 'lib/net/tftp.rb', line 46 def code @code end |