Sha256: f44cc5c3589494568cab5431f7782f14af4423e5738f13d4d1fba9a59959abbc

Contents?: true

Size: 271 Bytes

Versions: 16

Compression:

Stored size: 271 Bytes

Contents

class PlainRubyClass
  def initialize(attributes)
    @attributes = attributes
    self.class.last = self
  end

  attr_reader :attributes

  def self.last
    @last
  end

  def self.last=(instance)
    @last = instance
  end

  def self.reset
    @last = nil
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cucumber_factory-2.5.0 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.4.1 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.4.0 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.3.1 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.3.0 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.2.0 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.1.1 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.1.0 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.0.2 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.0.1 spec/support/models/plain_ruby_class.rb
cucumber_factory-2.0.0 spec/support/models/plain_ruby_class.rb
cucumber_factory-1.15.1 spec/support/models/plain_ruby_class.rb
cucumber_factory-1.15.0 spec/support/models/plain_ruby_class.rb
cucumber_factory-1.14.2 spec/support/models/plain_ruby_class.rb
cucumber_factory-1.14.1 spec/support/models/plain_ruby_class.rb
cucumber_factory-1.14.0 spec/support/models/plain_ruby_class.rb