Sha256: 257382061712f340e447d648fcf0a7ccab177c879040750b3d1aec7f557a785c
Contents?: true
Size: 294 Bytes
Versions: 2
Compression:
Stored size: 294 Bytes
Contents
class OrUser < ApplicationController def initialize(value) @value = value end def method_with_or @value or false end def if_with_or if @value or true 'Both @value or true were true (the latter is no surprise)' else "This can't happen!" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virtual_keywords-0.3.1 | lib/spec/virtualizees/or_user.rb |
virtual_keywords-0.3.0 | lib/spec/virtualizees/or_user.rb |