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 self.first_uninteresting | |
numbers = all(:order=>:number, :conditions=>"number >= 0").map(&:number) | |
highest = numbers.sort.last | |
missing = (1..highest).to_a - numbers | |
return highest + 1 if missing.empty? | |
missing.first | |
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
Source | |
_global_ = 1 | |
class Blah | |
def foo(a, b) | |
c = a._op_plus(b) | |
_global_.print(c) | |
end | |
end | |
NewerOlder