Sha256: d0f3c3dd1e3db0611849c883dc96174156fdc22daf12dc3c295235c1100eb9e7

Contents?: true

Size: 244 Bytes

Versions: 32

Compression:

Stored size: 244 Bytes

Contents

class CreateSprocket

  include Lev::Routine

protected

  def exec(number, text)
    sprocket = Sprocket.new(integer_gt_2: number, text_only_letters: text)
    sprocket.valid?

    transfer_errors_from(sprocket, {scope: :sprocket})
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
lev-12.1.0 spec/support/create_sprocket.rb
lev-12.0.0 spec/support/create_sprocket.rb
lev-11.0.0 spec/support/create_sprocket.rb
lev-10.1.0 spec/support/create_sprocket.rb
lev-10.0.0 spec/support/create_sprocket.rb
lev-9.0.4 spec/support/create_sprocket.rb
lev-9.0.3 spec/support/create_sprocket.rb
lev-9.0.2 spec/support/create_sprocket.rb
lev-9.0.1 spec/support/create_sprocket.rb
lev-9.0.0 spec/support/create_sprocket.rb
lev-8.1.0 spec/support/create_sprocket.rb
lev-8.0.0 spec/support/create_sprocket.rb
lev-7.1.0 spec/support/create_sprocket.rb
lev-7.0.3 spec/support/create_sprocket.rb
lev-2.2.2 spec/support/create_sprocket.rb
lev-7.0.2 spec/support/create_sprocket.rb
lev-7.0.1 spec/support/create_sprocket.rb
lev-7.0.0 spec/support/create_sprocket.rb
lev-6.0.0 spec/support/create_sprocket.rb
lev-5.0.0 spec/support/create_sprocket.rb