Sha256: bd6b43081bec3db1cc16edd1b67dcf578e2b7200bcb6c7546300e57f8eaf6c51

Contents?: true

Size: 309 Bytes

Versions: 43

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

require_relative 'my_concern'

class MyClass
  include MyConcern
  validate :name, :surname, String
  validate :age, :legs, Integer

  def initialize(name: nil, surname: nil, age: nil, legs: nil)
    @name = name
    @surname = surname
    @age = age
    @legs = legs
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
sinclair-1.6.7 spec/support/models/my_class.rb
sinclair-1.6.6 spec/support/models/my_class.rb
sinclair-1.6.5 spec/support/models/my_class.rb
sinclair-1.6.4 spec/support/models/my_class.rb
sinclair-1.6.3 spec/support/models/my_class.rb
sinclair-1.6.2 spec/support/models/my_class.rb
sinclair-1.6.1 spec/support/models/my_class.rb
sinclair-1.6.0 spec/support/models/my_class.rb
sinclair-1.5.2 spec/support/models/my_class.rb
sinclair-1.5.1 spec/support/models/my_class.rb
sinclair-1.5.0 spec/support/models/my_class.rb
sinclair-1.4.2 spec/support/models/my_class.rb
sinclair-1.4.1 spec/support/models/my_class.rb
sinclair-1.4.0 spec/support/models/my_class.rb
sinclair-1.3.4 spec/support/models/my_class.rb
sinclair-1.3.3 spec/support/models/my_class.rb
sinclair-1.3.2 spec/support/models/my_class.rb
sinclair-1.3.1 spec/support/models/my_class.rb
sinclair-1.3.0 spec/support/models/my_class.rb
sinclair-1.2.1 spec/support/models/my_class.rb