This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Product | |
| def initialize(name, price, launched_on) | |
| @name, @price, @launched_on = name, price, launched_on | |
| end | |
| def name | |
| @name | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Object Counter for use in example on vipulnsward.com about Frozen | |
| # Strings in Ruby | |
| module ObjectCounter | |
| def self.count | |
| GC.disable | |
| before_count = ObjectSpace.count_objects | |
| yield | |
| after_count = ObjectSpace.count_objects | |
| after_count.each do |k,v| | |
| after_count[k] = v.to_i - before_count[k].to_i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OS: Mac OSX Mountain Lion | |
| make test | |
| running API tests | |
| ............ | |
| OK (12 tests) | |
| running GC tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def exists?(conditions = :none) | |
| return false if @association.owner.new_record? | |
| super(conditions) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def encode(bytearray []) | |
| //process bytearray here | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IRBuilder19.java:198:in `receiveArgs': java.lang.NoSuchFieldError: UNDEFINED | |
| from IRBuilder19.java:252:in `receiveMethodArgs' | |
| from IRBuilder.java:1782:in `defineNewMethod' | |
| from IRBuilder.java:1801:in `buildDefn' | |
| from IRBuilder.java:492:in `build' | |
| from IRBuilder.java:2535:in `buildNewline' | |
| from IRBuilder.java:523:in `build' | |
| from IRBuilder.java:913:in `buildBlock' | |
| from IRBuilder.java:478:in `build' | |
| from IRBuilder.java:1084:in `buildClass' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ================================== | |
| /home/sward/.m2/repository/com/googlecode/japi-checker/reference-test-jar/0.1.4-SNAPSHOT/reference-test-jar-0.1.4-SNAPSHOT.jar | |
| /home/sward/.m2/repository/com/googlecode/japi-checker/new-test-jar/0.1.4-SNAPSHOT/new-test-jar-0.1.4-SNAPSHOT.jar | |
| ================================== | |
| /home/sward/.m2/repository/com/googlecode/japi-checker/reference-test-jar/0.1.4-SNAPSHOT/reference-test-jar-0.1.4-SNAPSHOT.jar | |
| /home/sward/.m2/repository/com/googlecode/japi-checker/new-test-jar/0.1.4-SNAPSHOT/new-test-jar-0.1.4-SNAPSHOT.jar | |
| class com/googlecode/japi/checker/tests/RemovedClass extends java/lang/Object { | |
| - source: RemovedClass.java | |
| - debug: null | |
| +(m) <init> ()V null null |
NewerOlder