module Sequel::Postgres::InetDatasetMethods
Private Instance Methods
literal_other_append(sql, value)
click to toggle source
Convert IPAddr value to a string and append a literal version of the string to the sql.
Calls superclass method
# File lib/sequel/extensions/pg_inet.rb 116 def literal_other_append(sql, value) 117 if value.is_a?(IPAddr) 118 literal_string_append(sql, "#{value.to_s}/#{value.instance_variable_get(:@mask_addr).to_s(2).count('1')}") 119 else 120 super 121 end 122 end