From: Joseph Phillips Date: 2011-10-21T01:47:28+09:00 Subject: Re: Local module use in Rack::Auth::Basic block. --1879178088-68257426-1319128858=:87916 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0A=0A=0A________________________________=0AFrom: Joseph Phillips =0ATo: ruby-talk ML =0ASen= t: Tuesday, 18 October 2011 11:03 PM=0ASubject: Local module use in Rack::A= uth::Basic block.=0A=0AIf I'm using the standard Rack authorisation in a Si= natra application:=0A=0Ause Rack::Auth::Basic do |username, password|=0A...= =0Aend=0AHow can I reference other code assets local to the same file, say,= a module?=0A=0AIn my tests, I'm getting an undefined method error if I use= the module inside the block above.=0A=0AThanks in advance,=0A=0AJoe=0A=A0= =0A------=0A=0AI actually sorted this out already - silly syntactical mista= ke. --1879178088-68257426-1319128858=:87916--