class Sequel::Postgres::PropertyGraph::Generator
Base class for all Generator DSL classes. This uses a design where The DSL class is only used for the evaluation of the block, and new returns a frozen struct.
Constants
Public Class Methods
new(*args, &block)
click to toggle source
Instead of returning the Generator instance, return a frozen struct with data from the generator. This prevents accidentally calling the generator methods, and makes it possible for the generator class and result class to use the same method name in two different ways, with the generator setting data and the frozen struct method returning it. The frozen struct classes use the constant Data under each generator subclass.
Calls superclass method
# File lib/sequel/adapters/shared/postgres.rb 271 def self.new(*args, &block) 272 super(*args, &block).data 273 end