Sha256: cd76a046e78212952d55acff531924e1bf7af9ec28dd088fd10903c4e42ab3b9

Contents?: true

Size: 281 Bytes

Versions: 7

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

class SampleModel
  def initialize(name: nil, age: nil)
    @name = name
    @age  = age
  end

  def information
    "#{name}: #{age} yo"
  end

  protected

  attr_reader :name

  private

  attr_reader :age
end

class OtherModel < SampleModel
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/support/models/sample_model.rb
sinclair-2.1.0 spec/support/models/sample_model.rb
sinclair-2.0.1 spec/support/models/sample_model.rb
sinclair-2.0.0 spec/support/models/sample_model.rb
sinclair-1.16.3 spec/support/models/sample_model.rb
sinclair-1.16.2 spec/support/models/sample_model.rb
sinclair-1.16.1 spec/support/models/sample_model.rb