Class: CastingHandler

Inherits:
AbstractCommandHandler show all
Defined in:
lib/javonet-ruby-sdk/core/handler/casting_handler.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/casting_handler.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/casting_handler.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/casting_handler.rb

Instance Method Summary collapse

Methods inherited from AbstractCommandHandler

#handle_command, #iterate

Instance Method Details

#process(command) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/javonet-ruby-sdk/core/handler/casting_handler.rb', line 4

def process(command)
  begin
    raise "Explicit cast is forbidden in dynamically typed languages"
  rescue Exception => e
    return e
  end
end