lib/rye/rap.rb in rye-0.3.2 vs lib/rye/rap.rb in rye-0.4

- old
+ new

@@ -18,11 +18,16 @@ # was executed by (Rye::Box or Rye::Set) attr_reader :obj # An array containing any STDERR output attr_reader :stderr + attr_accessor :exit_code + attr_accessor :exit_signal + # The command that was executed. + attr_accessor :cmd + # * +obj+ an instance of Rye::Box or Rye::Set # * +args+ anything that can sent to Array#new def initialize(obj, *args) @obj = obj super *args @@ -64,9 +69,13 @@ # one, otherwise the value of Array#to_s def to_s return self.first if self.size == 1 return "" if self.size == 0 super + end + + def >>(*other) + p other end #--- # If Box's shell methods return Rap objects, then # we can do stuff like this \ No newline at end of file