Sha256: 3e7a6fc4c0719c656aeace80d66156afc12900eb1d8a516e1cde8984b98250f7
Contents?: true
Size: 1.57 KB
Versions: 4
Compression:
Stored size: 1.57 KB
Contents
module PgEventstore module Extensions module OptionsExtension class Option attr_reader name: Symbol attr_reader metadata: untyped? def initialize: (Symbol name, ?untyped? metadata) -> untyped def ==: (untyped other_option) -> bool def eql?: (untyped other_option) -> bool def hash: () -> Integer end class Options def []: (Symbol option) -> PgEventstore::Extensions::OptionsExtension::Option? end def self.included: (untyped klass) -> untyped def initialize: (**untyped options) -> void # Construct a hash from options, where key is the option's name and the value is option's # value def options_hash: () -> ::Hash[untyped, untyped] # _@param_ `opt_name` def readonly!: (Symbol opt_name) -> bool # _@param_ `opt_name` def readonly?: (Symbol opt_name) -> bool # _@param_ `opt_name` def readonly_error: (Symbol opt_name) -> void # _@param_ `options` def init_default_values: (::Hash[untyped, untyped] options) -> void module ClassMethods # _@param_ `opt_name` — option name # # _@param_ `blk` — provide define value using block. It will be later evaluated in the context of your object to determine the default value of the option def option: (Symbol opt_name, ?metadata: untyped?) ?{ () -> untyped } -> Symbol def inherited: (untyped klass) -> untyped # _@param_ `method_name` def warn_already_defined: (Symbol method_name) -> void end end end end
Version data entries
4 entries across 4 versions & 1 rubygems