Class: Paradin::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/paradin/context.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args, **kwargs) ⇒ Context

Returns a new instance of Context.



8
9
10
11
# File 'lib/paradin/context.rb', line 8

def initialize(*args, **kwargs)
  @args = serialize(args)
  @kwargs = serialize(kwargs)
end

Instance Method Details

#argsObject



13
14
15
# File 'lib/paradin/context.rb', line 13

def args
  deserialize(@args)
end

#kwargsObject



17
18
19
# File 'lib/paradin/context.rb', line 17

def kwargs
  deserialize(@kwargs)
end