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.
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 |