module Jet::Core
Constants
- MAJOR
- MINOR
- TINY
- VERSION
Public Class Methods
block_and_callables!(*callables, &blk)
click to toggle source
# File lib/jet/core.rb, line 72 def block_and_callables!(*callables, &blk) raise ArgumentError, "`callables` must respond to `call`" unless callables.all? { |obj| obj.respond_to?(:call) } ([blk] + callables).compact end
block_or_callable!(callable, &blk)
click to toggle source
# File lib/jet/core.rb, line 79 def block_or_callable!(callable, &blk) raise ArgumentError, "both block and callable given" if blk && callable raise ArgumentError, "`callable` must respond to `call`" if callable && !callable.respond_to?(:call) blk || callable end
version()
click to toggle source
# File lib/jet/core/version.rb, line 10 def self.version VERSION end