Sha256: 526e2037b91d5f5f4f9aed57ff2ca3accef231736f1bfc51a057b8e0978a7b3c

Contents?: true

Size: 359 Bytes

Versions: 94

Compression:

Stored size: 359 Bytes

Contents

class ReeErrors::BuildError
  include Ree::FnDSL

  fn :build_error do
    link 'ree_errors/error', -> { Error }
  end

  contract Symbol, Symbol, Nilor[String] => SubclassOf[Error]
  def call(type, code, locale)
    klass = Class.new(Error)

    klass.instance_exec do
      @type = type
      @code = code
      @locale = locale
    end

    klass
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
ree_lib-1.0.34 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.33 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.32 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.31 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.30 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.29 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.28 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.27 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.26 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.24 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.23 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.22 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.21 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.20 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.19 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.18 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.17 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.16 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.15 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb
ree_lib-1.0.14 lib/ree_lib/packages/ree_errors/package/ree_errors/build_error.rb