Class: Object

Inherits:
BasicObject
Includes:
CosmosCompatibility
Defined in:
lib/openc3/top_level.rb,
lib/openc3/io/json_rpc.rb

Instance Method Summary collapse

Methods included from CosmosCompatibility

#load, #require

Instance Method Details

#as_json(_options = nil) ⇒ Object

:nodoc:



28
29
30
31
32
33
34
# File 'lib/openc3/io/json_rpc.rb', line 28

def as_json(_options = nil) #:nodoc:
  if respond_to?(:to_hash)
    to_hash
  else
    instance_variables
  end
end