class Crjsc::ValueRef

Defined in:

crjsc/value_ref.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(jctx : Crjsc::Context, v : LibJavaScriptCore::Objectref) #

[View source]
def self.new(jctx : Crjsc::Context, j : Crjsc::LibJavaScriptCore::Valueref) #

[View source]

Instance Method Detail

def cr_type #

[View source]
def to_array #

[View source]
def to_bool #

[View source]
def to_cr #

[View source]
def to_i #

[View source]
def to_js(jsc) : Crjsc::LibJavaScriptCore::Valueref #

[View source]
def to_object #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def to_unsafe : Crjsc::LibJavaScriptCore::Valueref #

[View source]