class Crjsc::ValueRef
- Crjsc::ValueRef
- Reference
- Object
Defined in:
crjsc/value_ref.crConstructors
- .new(jctx : Crjsc::Context, v : LibJavaScriptCore::Objectref)
- .new(jctx : Crjsc::Context, j : Crjsc::LibJavaScriptCore::Valueref)
Instance Method Summary
- #cr_type
- #to_array
- #to_bool
- #to_cr
- #to_i
- #to_js(jsc) : Crjsc::LibJavaScriptCore::Valueref
- #to_object
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #to_unsafe : Crjsc::LibJavaScriptCore::Valueref
Constructor Detail
Instance Method Detail
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>