Class: Runt::ApplyLast
- Inherits:
-
Object
- Object
- Runt::ApplyLast
- Defined in:
- lib/runt.rb
Overview
:nodoc:
Instance Method Summary collapse
- #[](arg) ⇒ Object
-
#initialize ⇒ ApplyLast
constructor
A new instance of ApplyLast.
Constructor Details
#initialize ⇒ ApplyLast
Returns a new instance of ApplyLast.
140 141 142 |
# File 'lib/runt.rb', line 140 def initialize @negate=Proc.new{|n| n*-1} end |
Instance Method Details
#[](arg) ⇒ Object
143 144 145 |
# File 'lib/runt.rb', line 143 def [](arg) @negate.call(arg) end |