Class: Lax::Case

Inherits:
Hash
  • Object
show all
Defined in:
lib/lax/case.rb

Instance Method Summary collapse

Instance Method Details

#testObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/lax/case.rb', line 3

def test
  Lax.call self[:before], self
  self[:pass] = begin
    self[:cond][self[:value]=self[:obj].__send__(self[:msg],*self[:args],&self[:blk])]
  rescue self[:xptn] => e
    true
  rescue => e
    self[:xptn] = e
    false
  end
  Lax.call self[:after], self
end