Module: Buildr::Help
- Defined in:
- lib/buildr/core/help.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.<<(arg) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/buildr/core/help.rb', line 21 def <<(arg) if arg.respond_to?(:call) texters << arg else texters << lambda { arg } end end |
.to_s ⇒ Object
29 30 31 |
# File 'lib/buildr/core/help.rb', line 29 def to_s texters.map(&:call).join("\n") end |