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