Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/rubu.rb
Overview
Array class extension to support common Mark operations.
Instance Method Summary (collapse)
- - (Object) path(joiner = ' ')
- - (Object) peer(rdir, ext, base = nil)
- - (Object) rpath(joiner = ' ')
- - (Object) set_opt(key, val)
- - (Object) use
Instance Method Details
- (Object) path(joiner = ' ')
782 783 784 |
# File 'lib/rubu.rb', line 782 def path( joiner = ' ' ) self.map{ |item| item.path }.join( joiner ) end |
- (Object) peer(rdir, ext, base = nil)
776 777 778 779 780 |
# File 'lib/rubu.rb', line 776 def peer( rdir, ext, base = nil ) self.map do |item| item.peer( rdir, ext, base ) end end |
- (Object) rpath(joiner = ' ')
786 787 788 |
# File 'lib/rubu.rb', line 786 def rpath( joiner = ' ' ) self.map{ |item| item.rpath }.join( joiner ) end |
- (Object) set_opt(key, val)
769 770 771 772 773 774 |
# File 'lib/rubu.rb', line 769 def set_opt( key, val ) self.each do |item| item.set_opt( key, val ) end self end |
- (Object) use
763 764 765 766 767 |
# File 'lib/rubu.rb', line 763 def use self.each do |item| item.use end end |