JS::Object class of PicoRuby

Type aliases

poro_t

JS::Object | String | Symbol | Array[JS::Object] | Integer | Float | nil | bool

Instance methods

[]

instance.[](Symbol name) -> JS::Object

addEventListener

instance.addEventListener(String event_type) { (String event_json) -> void } -> Integer

appendChild

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

children

instance.children() -> JS::Object

classList

instance.classList() -> JS::Object

className

instance.className() -> JS::Object

createElement

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

createTextNode

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

fetch

instance.fetch(String url) { (::Object response) -> void } -> void

innerHTML

instance.innerHTML() -> JS::Object

innerHTML=

instance.innerHTML=(String html) -> String

parentElement

instance.parentElement() -> JS::Object

querySelector

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

removeAttribute

instance.removeAttribute(String name) -> void

removeChild

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

replaceChild

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

setAttribute

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

style

instance.style() -> JS::Object

style=

instance.style=(String style) -> String

tagName

instance.tagName() -> JS::Object

textContent

instance.textContent() -> JS::Object

textContent=

instance.textContent=(String text) -> String

to_binary

instance.to_binary() -> String

to_poro

instance.to_poro() -> poro_t
Tags: class