BlockExtension

public protocol BlockExtension: class

Protocol for extension code that can be executed on a Block during its initialization.

  • Runs extension code for a given block.

    Throws

    BlocklyError: Thrown if an error occurs while running the extension code.

    Declaration

    Swift

    func run(block: Block) throws