Class: PgEventstore::Extensions::OptionsExtension::Options

Inherits:
Set
  • Object
show all
Defined in:
lib/pg_eventstore/extensions/options_extension.rb

Instance Method Summary collapse

Instance Method Details

#[](option) ⇒ PgEventstore::Extensions::OptionsExtension::Option?

Parameters:

  • option (Symbol)

Returns:



83
84
85
# File 'lib/pg_eventstore/extensions/options_extension.rb', line 83

def [](option)
  @hash[Option.new(option)]
end

#add(option) ⇒ Object



76
77
78
79
# File 'lib/pg_eventstore/extensions/options_extension.rb', line 76

def add(option)
  @hash[option] = option
  self
end