Module: Buildr::ShellProviders
- Defined in:
- lib/buildr/shell.rb
Class Method Summary collapse
- .add(p) ⇒ Object (also: <<)
- .each ⇒ Object
- .providers ⇒ Object
Class Method Details
.add(p) ⇒ Object Also known as: <<
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/buildr/shell.rb', line 20 def add(p) @providers ||= {} if p.lang == :none @providers[:none] ||= [] @providers[:none] << p else @providers[p.lang] = p end end |
.each ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/buildr/shell.rb', line 36 def each providers.each do |lang, p| if lang == :none p.each do |x| yield x end else yield p end end end |
.providers ⇒ Object
32 33 34 |
# File 'lib/buildr/shell.rb', line 32 def providers @providers ||= {} end |