Module: Rabbit::HTML

Defined in:
lib/rabbit/utils.rb,
lib/rabbit/html/generator.rb

Defined Under Namespace

Classes: Generator

Class Method Summary collapse

Class Method Details


406
407
408
409
410
411
412
413
# File 'lib/rabbit/utils.rb', line 406

def a_link(start_a, label, label_only)
  result = "["
  result << start_a unless label_only
  result << label
  result << "</a>" unless label_only
  result << "]"
  result
end