In Files

Parent

Methods

Class Index [+]

Quicksearch

String

RDoc workarounds

Public Instance Methods

if_exists(item = nil) click to toggle source
    # File lib/allison.rb, line 4
 4:   def if_exists (item = nil)
 5:     unless item
 6:       self unless self =~ /(%(\w+)%)/
 7:       "\nIF:#{$2}\n#{self}\nENDIF:#{$2}\n"
 8:     else
 9:       "\nIF:#{item}\n#{self}\nENDIF:#{item}\n"
10:     end
11:   end
loop(item) click to toggle source
    # File lib/allison.rb, line 12
12:   def loop(item)
13:     "\nSTART:#{item}\n#{self}\nEND:#{item}\n"
14:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.