class BasicObject
Public Instance Methods
abstract(name)
click to toggle source
# File lib/typed/runtime.rb, line 27 def abstract(name) define_method(name) { |*args| raise "Invoking abstract method #{name}"} end
cast(from, _to)
click to toggle source
# File lib/typed/runtime.rb, line 22 def cast(from, _to) # noop from end
ts(signature)
click to toggle source
# File lib/typed/runtime.rb, line 2 def ts(signature) # TODO: Add information about the script and line for the invocation here # caller_infos = caller.first.split(":") # puts "#{caller_infos[0]} : #{caller_infos[1]} : #{str}" ::TypedRb.log(binding, :debug, "Parsing signature: #{signature}") if $TYPECHECK if ::TypedRb::Runtime::TypeSignatureProcessor.type_signature?(signature) ::TypedRb::Runtime::TypeSignatureProcessor.process(signature) else ::TypedRb::Runtime::MethodSignatureProcessor.process(signature, self) end end # rescue ::StandardError => ex # puts ex.message # puts ex.backtrace.join("\n") # raise ::StandardError, "Error parsing type signature '#{signature}': #{ex.message}" end
ts_ignore()
click to toggle source
# File lib/typed/runtime.rb, line 20 def ts_ignore; end