Sha256: e916afe5e9cc59fa308dc7ce42bdfd2e71f77deade5e40c749148c25a4625db8
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
require "test_helper" class DocsOptionTest < Minitest::Spec it do #:method option = Trailblazer::Option(:object_id) option.(exec_context: Object.new) # => 1234567 #:method end #:lambda option = Trailblazer::Option(-> { object_id }) option.(exec_context: Object.new) # => 1234567 #:lambda end #:module class CallMe def self.call(message:, **options) message end end option = Trailblazer::Option(CallMe) option.(keyword_arguments: { message: "hello!" }, exec_context: nil) # => "hello!" #:module end end end
Version data entries
3 entries across 3 versions & 3 rubygems