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.
Classes and Modules
- Sequel::Postgres::PropertyGraph::Generator::Alter
- Sequel::Postgres::PropertyGraph::Generator::AlterElement
- Sequel::Postgres::PropertyGraph::Generator::Create
- Sequel::Postgres::PropertyGraph::Generator::Edge
- Sequel::Postgres::PropertyGraph::Generator::Element
- Sequel::Postgres::PropertyGraph::Generator::Target
- Sequel::Postgres::PropertyGraph::Generator::Vertex
Public Class methods
new(*args, &block)
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.
[show source]
# File lib/sequel/adapters/shared/postgres.rb 271 def self.new(*args, &block) 272 super(*args, &block).data 273 end