Class: Object

Inherits:
BasicObject
Defined in:
lib/tapp.rb

Instance Method Summary collapse

Instance Method Details

#tapp(tag = nil) ⇒ Object



12
13
14
15
16
17
# File 'lib/tapp.rb', line 12

def tapp(tag=nil)
  tap { 
    print "#{tag}=" if tag
    ap block_given? ? yield(self) : self 
  }
end

#taputs(tag = nil) ⇒ Object



27
28
29
30
31
32
# File 'lib/tapp.rb', line 27

def taputs(tag=nil)
  tap { 
    print "#{tag}=" if tag
    puts block_given? ? yield(self) : self 
  }
end