Skip to content

Instantly share code, notes, and snippets.

@IsaAliev
Last active November 2, 2019 10:13
Show Gist options
  • Save IsaAliev/d6522dfa8488783bd24749771f8f6d14 to your computer and use it in GitHub Desktop.
Save IsaAliev/d6522dfa8488783bd24749771f8f6d14 to your computer and use it in GitHub Desktop.
import Foundation
import Bond
class ActionCommand: Command {
typealias Element = Void
private var actionBlock: () -> ()
init(_ actionBlock: @escaping () -> ()) {
self.actionBlock = actionBlock
}
func execute() {
actionBlock()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment