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
.a_link(start_a, label, label_only) ⇒ Object
429 430 431 432 433 434 435 436 |
# File 'lib/rabbit/utils.rb', line 429 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 |