JS::Object class of PicoRuby

Singleton methods

register_callback

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

removeEventListener

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

Instance methods

<

instance.<(Integer | JS::Object other) -> bool

<=

instance.<=(Integer | JS::Object other) -> bool

<=>

instance.<=>(Integer | JS::Object other) -> Integer?

==

instance.==(untyped other) -> bool

>

instance.>(Integer | JS::Object other) -> bool

>=

instance.>=(Integer | JS::Object other) -> bool

URL

instance.URL() -> JS::Object

[]

instance.[](String | Symbol | Integer name) -> (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::Object event) -> void } -> Integer

appendChild

instance.appendChild(JS::Object child) -> bool

await

instance.await() -> JS::Object?

body

instance.body() -> JS::Object

children

instance.children() -> JS::Object

classList

instance.classList() -> JS::Object

clearTimeout

instance.clearTimeout(Integer callback_id) -> bool

content

instance.content() -> JS::Object

createElement

instance.createElement(String tag_name) -> JS::Object

createObjectURL

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

createTextNode

instance.createTextNode(String text) -> JS::Object

create_array

instance.create_array() -> JS::Object

create_object

instance.create_object() -> JS::Object

fetch

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

getAttribute

instance.getAttribute(String name) -> JS::Object?

getElementById

instance.getElementById(String id) -> JS::Object?

getItem

instance.getItem(String key) -> JS::Object?

highlightAll

instance.highlightAll() -> void

history

instance.history() -> JS::Object

hostname

instance.hostname() -> JS::Object

href

instance.href() -> JS::Object

innerHTML=

instance.innerHTML=(String html) -> String

insertBefore

instance.insertBefore(JS::Object new_child, ?JS::Object? ref_child) -> bool

item

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

length

instance.length() -> JS::Object

location

instance.location() -> JS::Object

parentElement

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

pathname

instance.pathname() -> JS::Object

preventDefault

instance.preventDefault() -> nil

push

instance.push(JS::Object item) -> JS::Object

pushState

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

querySelector

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

querySelectorAll

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

refcount

instance.refcount() -> Integer

remove

instance.remove(*String class_names) -> bool

removeAttribute

instance.removeAttribute(String name) -> bool

removeChild

instance.removeChild(JS::Object child) -> bool

removeItem

instance.removeItem(String key) -> void

replaceChild

instance.replaceChild(JS::Object new_child, JS::Object old_child) -> bool

replaceState

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

setAttribute

instance.setAttribute(String name, String value) -> bool

setItem

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

setTimeout

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

status

instance.status() -> JS::Object

stopPropagation

instance.stopPropagation() -> nil

style

instance.style() -> JS::Object

tagName

instance.tagName() -> JS::Object

target

instance.target() -> JS::Object

textContent=

instance.textContent=(String text) -> String

then

instance.then() { (JS::Object? result) -> void } -> JS::Object?

to_a

instance.to_a() -> Array[JS::Object]

to_binary

instance.to_binary() -> String

to_f

instance.to_f() -> Float

to_i

instance.to_i() -> Integer

to_s

instance.to_s() -> String

type

instance.type() -> Symbol
Tags: class