class Medusa::ValueWrapper

Defined in:

medusa/value_wrapper.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : QuickJS::JSContext, value : QuickJS::JSValue) #

[View source]
def self.new(context : QuickJS::JSContext, value : Float64) #

[View source]
def self.new(context : QuickJS::JSContext, value : Int32) #

[View source]
def self.new(context : QuickJS::JSContext, value : Int64) #

[View source]
def self.new(context : QuickJS::JSContext, value : String) #

[View source]
def self.new(context : QuickJS::JSContext, value : Bool) #

[View source]
def self.new(context : QuickJS::JSContext, value : Hash(String, JSON::Any)) #

[View source]
def self.new(context : QuickJS::JSContext, values : Array(JSON::Any)) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def [](index : Int32) : ValueWrapper #

[View source]
def [](key : String) : ValueWrapper #

[View source]
def []=(index : Int32, value : ValueWrapper) : ValueWrapper #

[View source]
def []=(key : String, value : ValueWrapper) : ValueWrapper #

[View source]
def []?(index : Int32) : ValueWrapper #

[View source]
def []?(key : String) : ValueWrapper #

[View source]
def as_a : Array(JSON::Any) #

[View source]
def as_bool : Bool #

[View source]
def as_f64 : Float64 #

[View source]
def as_h : Hash(String, JSON::Any) #

[View source]
def as_i : Int32 #

[View source]
def as_i64 : Int64 #

[View source]
def as_s : String #

[View source]
def finalize #

[View source]
def from_json(value : JSON::Any) : ValueWrapper #

[View source]
def to_unsafe : QuickJS::JSValue #

[View source]
def undefined? : Bool #

[View source]