Sha256: 4b5629c1182cc3c6c676f9a7aa8ce747ff5498b92cf4aee8c49e671d8dddaca7
Contents?: true
Size: 493 Bytes
Versions: 10
Compression:
Stored size: 493 Bytes
Contents
module GitHub class SQL # Internal: a list of arrays of values for insertion into SQL. class Rows # Public: the Array of row values attr_reader :values def initialize(values) unless values.all? { |v| v.is_a? Array } raise ArgumentError, "cannot instantiate SQL rows with anything but arrays" end @values = values.dup.freeze end def inspect "<#{self.class.name} #{values.inspect}>" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems