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 156 def +(offset) self.clone.set(@addr + offset, @family) end
Returns a new ipaddr greater than the original address by offset