module Augmented::Objects::Iffy
Public Instance Methods
else(*_)
click to toggle source
# File lib/augmented/objects/iffy.rb, line 14 def else *_ self end
if(condition = self) { |self| ... }
click to toggle source
# File lib/augmented/objects/iffy.rb, line 6 def if condition = self self if (block_given? ? yield(self) : condition) end
unless(condition = self) { |self| ... }
click to toggle source
# File lib/augmented/objects/iffy.rb, line 10 def unless condition = self self unless (block_given? ? yield(self) : condition) end