Class: Runt::ApplyLast

Inherits:
Object
  • Object
show all
Defined in:
lib/runt.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeApplyLast

Returns a new instance of ApplyLast.



141
142
143
# File 'lib/runt.rb', line 141

def initialize
  @negate=Proc.new{|n| n*-1}
end

Instance Method Details

#[](arg) ⇒ Object



144
145
146
# File 'lib/runt.rb', line 144

def [](arg)
  @negate.call(arg)
end