struct BSON::Code

Overview

JavaScript code.

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(code : String, scope : BSON? = nil) #

Instance Method Detail

def code : String #

def scope : BSON? #

def to_canonical_extjson(builder : JSON::Builder) #

Serialize to a canonical extended json representation.

NOTE see https://github.com/mongodb/specifications/blob/master/source/extended-json.rst


def to_json(builder : JSON::Builder) #