Class: Prosody::PublishedValue

Inherits:
Object
  • Object
show all
Defined in:
lib/prosody/state.rb,
sig/state.rbs

Instance Method Summary collapse

Constructor Details

#initialize(native) ⇒ PublishedValue

Returns a new instance of PublishedValue.



239
# File 'lib/prosody/state.rb', line 239

def initialize(native) = @native = native

Instance Method Details

#get(key) ⇒ T?

Parameters:

Returns:

  • (T, nil)


240
# File 'lib/prosody/state.rb', line 240

def get(key) = @native.get(key.to_s)