JS::Object class of PicoRuby

Singleton methods

_close_event_queue

JS::Object._close_event_queue(Integer callback_id) -> (Task::Queue | nil)

_spawn_event_consumer

JS::Object._spawn_event_consumer(Integer callback_id, Proc block) -> Integer

register_callback

JS::Object.register_callback(String name) { (*untyped args) -> untyped } -> Integer

removeEventListener

JS::Object.removeEventListener(Integer callback_id) -> bool

Instance methods

==

instance.==(untyped other) -> bool

URL

instance.URL() -> JS::Object

[]

instance.[](String | Symbol | Integer name) -> (String | Integer | Float | bool | JS::Object | nil)

[]=

instance.[]=(String | Symbol name, untyped value) -> untyped

_js_remove_event_listener_wrapper

instance._js_remove_event_listener_wrapper(Integer callback_id) -> bool

add

instance.add(*String class_names) -> bool

addEventListener

instance.addEventListener(String event_type) { (JS::Event event) -> void } -> Integer

body

instance.body() -> JS::Element

children

instance.children() -> JS::Object

classList

instance.classList() -> JS::Object

clearTimeout

instance.clearTimeout(Integer callback_id) -> bool

content

instance.content() -> String

createObjectURL

instance.createObjectURL(JS::Object blob) -> String

create_array

instance.create_array() -> JS::Array

create_object

instance.create_object() -> JS::Object

fetch

instance.fetch(String url, ?Hash[Symbol, untyped]? options) { (JS::Response response) -> void } -> void

getAttribute

instance.getAttribute(String name) -> String?

getItem

instance.getItem(String key) -> String?

highlightAll

instance.highlightAll() -> void

history

instance.history() -> JS::Object

hostname

instance.hostname() -> String

href

instance.href() -> String

innerHTML=

instance.innerHTML=(String html) -> String

inspect

instance.inspect() -> String

item

instance.item(String | Integer num) -> JS::Object?

length

instance.length() -> Integer

location

instance.location() -> JS::Object

parentElement

instance.parentElement() -> JS::Element?

parentNode

instance.parentNode() -> JS::Element?

pathname

instance.pathname() -> String

push

instance.push(untyped item) -> Integer

pushState

instance.pushState(untyped data, String title, String url) -> void

querySelector

instance.querySelector(String selector) -> JS::Element?

querySelectorAll

instance.querySelectorAll(String selector) -> JS::Object

refcount

instance.refcount() -> Integer

remove

instance.remove(*String class_names) -> bool

removeItem

instance.removeItem(String key) -> void

replaceState

instance.replaceState(untyped data, String title, String url) -> void

setItem

instance.setItem(String key, String value) -> void

setTimeout

instance.setTimeout(Integer delay_ms) { () -> void } -> Integer

status

instance.status() -> Integer

style

instance.style() -> JS::Object

tagName

instance.tagName() -> String

target

instance.target() -> JS::Element

textContent=

instance.textContent=(String text) -> String

to_a

instance.to_a() -> ::Array[untyped]

to_f

instance.to_f() -> Float

to_i

instance.to_i() -> Integer

to_s

instance.to_s() -> String

typeof

instance.typeof() -> Symbol
Tags: class