def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
# File tmp/rubies/ruby-4.0.0/lib/ipaddr.rb, line 161 def -(offset) self.clone.set(@addr - offset, @family) end
Returns a new ipaddr less than the original address by offset