Sha256: a9ecbca2088cddf4c6c79432d3f8897b70a1db9352476d122e40aee923359a5c

Contents?: true

Size: 351 Bytes

Versions: 9

Compression:

Stored size: 351 Bytes

Contents

module BBK
  module App
    module Domains
      class ByBlock

        attr_reader :name

        def initialize(name, &block)
          raise ArgumentError.new('no block') unless block_given?

          @name = name
          @block = block
        end

        def call(route)
          @block.call(route)
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bbk-app-1.1.1.273627 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.1.273338 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.1.273312 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.1.273294 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.0.219406 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.0.216998 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.0.204569 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.0.200751 lib/bbk/app/domains/by_block.rb
bbk-app-1.1.0.200186 lib/bbk/app/domains/by_block.rb