lib/authlane/serializeduser.rb
##
# Enables Object-like access to the
# stored attributes.
#
# If the whole Object was stored, it sends the
# method name `m` as a message to that Object.
# Otherwise it will access the Hash using `m` as
# the key.
#
# @param [Symbol] m The name of the serialized object's attribute to be read
#
Enables Object-like access to the
stored attributes.

If the whole Object was stored, it sends the
method name `m` as a message to that Object.
Otherwise it will access the Hash using `m` as
the key.
Enables Object - like access to the stored attributes . If the whole Object was stored it sends the method name ` m ` as a message to that Object . Otherwise it will access the Hash using ` m ` as the key .
def method_missing(m, *args, &block)
        if @user.is_a? Hash
          if m.to_s.index('=').nil?
            @user[m]
          elsif m.to_s.index('id').nil?
            @user[m] = args[1]
          end
        else
          @user.__send__(m, args)
        end
      end
def method_missing ( m , * args , & block ) if @user . is_a? Hash if m . to_s . index ( '=' ) . nil? @user [ m ] elsif m . to_s . index ( 'id' ) . nil? @user [ m ] = args [ 1 ] end else @user . __send__ ( m , args ) end end
Enables Object-like access to the
stored attributes.
Enables Object - like access to the stored attributes .
m
<not_specific>
args
<not_specific>
block
<not_specific>
<not_specific>
m The name of the serialized object's attribute to be read
m The name of the serialized object ' s attribute to be read