lib/rmega/storage.rb in rmega-0.2.0 vs lib/rmega/storage.rb in rmega-0.2.1

- old
+ new

@@ -4,10 +4,13 @@ include Loggable include Crypto attr_reader :session - delegate :master_key, :shared_keys, to: :session + # Delegate to :session + [:master_key, :shared_keys].each do |name| + __send__(:define_method, name) { |*args| session.__send__(name, *args) } + end def initialize(session) @session = session end