Sha256: a449b01f8363050feccab8ba2b4a1ada7a0df6b70b3a5bc7eb0b131dd9277b58

Contents?: true

Size: 330 Bytes

Versions: 2

Compression:

Stored size: 330 Bytes

Contents

class AndUser < ActiveRecord::Base
  def initialize(value)
    @value = value
  end

  def method_with_and
    @value and true
  end

  def if_with_and
    if @value and true
      'Both @value and true were true (the latter is no surprise)'
    else
      '@value must have been false, I doubt true was false!'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
virtual_keywords-0.3.1 lib/spec/virtualizees/and_user.rb
virtual_keywords-0.3.0 lib/spec/virtualizees/and_user.rb