lib/smartcard/pcsc_context.rb
def context scope=SCOPE_SYSTEM
        ctx = nil
        begin
          ctx = self.new(scope)
          yield ctx
        ensure
          ctx.release if ctx
        end
      end
# Utility to avoid resource management and release of the context.
# A PC/SC context is established and passed in to the block provided
# to the method. You my optionally provide a scope parameter, if
# you don't the scope defaults to +SCOPE_SYSTEM+
#
# ---
#
# === Values for +scope+
#     * SCOPE_USER
#     * SCOPE_TERMINAL
#     * SCOPE_SYSTEM  
Utility to avoid resource management and release of the context.
A PC/SC context is established and passed in to the block provided
to the method. You my optionally provide a scope parameter, if
you don't the scope defaults to +SCOPE_SYSTEM+




Utility to avoid resource management and release of the context . A PC / SC context is established and passed in to the block provided to the method . You my optionally provide a scope parameter if you don ' t the scope defaults to + SCOPE_SYSTEM +
def context scope=SCOPE_SYSTEM
        ctx = nil
        begin
          ctx = self.new(scope)
          yield ctx
        ensure
          ctx.release if ctx
        end
      end
def context scope = SCOPE_SYSTEM ctx = nil begin ctx = self . new ( scope ) yield ctx ensure ctx . release if ctx end end
Utility to avoid resource management and release of the context.
Utility to avoid resource management and release of the context .
scope