Mailinglist Archive: zypp-commit (545 mails)

< Previous Next >
[zypp-commit] r8804 - /trunk/sat-solver/bindings/ruby/satsolver.rb
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Tue, 19 Feb 2008 12:23:36 -0000
  • Message-id: <20080219122336.F3AD12D7E1@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Tue Feb 19 13:23:36 2008
New Revision: 8804

URL: http://svn.opensuse.org/viewcvs/zypp?rev=8804&view=rev
Log:
method_missing: default to attribute name for unknown Solvable
properties

Modified:
trunk/sat-solver/bindings/ruby/satsolver.rb

Modified: trunk/sat-solver/bindings/ruby/satsolver.rb
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/satsolver.rb?rev=8804&r1=8803&r2=8804&view=diff
==============================================================================
--- trunk/sat-solver/bindings/ruby/satsolver.rb (original)
+++ trunk/sat-solver/bindings/ruby/satsolver.rb Tue Feb 19 13:23:36 2008
@@ -7,9 +7,10 @@
# end
# end
class Solvable
- def Solvable.method_missing(meth, *args)
- puts "Method missing"
- puts "Solvable #{meth.id2name}"
+ def method_missing(meth, *args)
+ attr meth.id2name
+# puts "Method missing"
+# puts "Solvable #{meth.id2name}"
end
end
end

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages