Class: PG::CompositeCoder
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/coder.rb
Instance Method Summary collapse
Methods inherited from Coder
#==, #dup, #initialize, #inspect_short, #marshal_dump, #marshal_load
Constructor Details
This class inherits a constructor from PG::Coder
Instance Method Details
#inspect ⇒ Object
80 81 82 83 84 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/coder.rb', line 80 def inspect str = super str[-1,0] = " elements_type=#{elements_type.inspect} #{needs_quotation? ? 'needs' : 'no'} quotation" str end |
#to_h ⇒ Object
72 73 74 75 76 77 78 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/coder.rb', line 72 def to_h super.merge!({ elements_type: elements_type, needs_quotation: needs_quotation?, delimiter: delimiter, }) end |