These are chat archives for opal/opal
Opal::Builder.buildagainst react-rb and see if I can get a version built, thanks for the hint @gabrielrios
alias_native :series do |s| Series::new(s) end
alias_native :mime_types, :mimeTypes, get: :item, named: :namedItem do |m| MimeType.new(m) end
@meh and @elia I much appreciate you taking the time to consider #1044. My timezone is +10, so out of sync with your conversation.
I understand your concern to keep the API clean and consistent, but I’ll probably keep my little patch going as it saves a lot of repetitive and comparatively untidy code.
#alias_native already provides an
:as option to provide type conversion from the native object, having the additional option
:as_array_of seems to me semantically and functionally consistent with the intent of the method, and is very handy and concise to boot. Leave it with you. :satisfied: