lib/pg_trunk/core/operation/generators.rb
# Gets or sets object name for the generator
Gets or sets object name for the generator
Gets or sets object name for the generator
def attribute(name, type, default: nil, desc: nil, **opts)
        name = name.to_sym
        attributes[name] = {
          type: gen_type(type),
          default: default,
          desc: desc,
        }
        super(name, type.to_sym, default: default, **opts)
      end
def attribute ( name , type , default : nil , desc : nil , ** opts ) name = name . to_sym attributes [ name ] = { type : gen_type ( type ) , default : default , desc : desc , } super ( name , type . to_sym , default : default , ** opts ) end
Gets or sets object name for the generator
Gets or sets object name for the generator
name
<not_specific>
type
<not_specific>
default
<not_specific>
desc
<not_specific>
opts
<not_specific>