Method: Lib::BOOTP::Packet::BootFile#initialize
- Defined in:
- lib/lib/bootp/packet/boot_file.rb
#initialize(file = '.') ⇒ BootFile
Returns a new instance of BootFile.
18 19 20 21 22 |
# File 'lib/lib/bootp/packet/boot_file.rb', line 18 def initialize(file = '.') raise ArgumentError, "Can't convert #{file.class.name} to String" unless file.respond_to? :to_s raise ArgumentError, "Given Server Host Name is to long: #{file}" if file.to_s.size > 128 @file = file.to_s end |