mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

ruby-3.0.0-preview2でMastodonを走らせようと思ったらchewyさんが

def create_type(index, target, options = {}, &block)

から

adapter = adapters.find { |klass| klass.accepts?(target) }.new(target, options)

みたいに呼んでるnewが

def initialize(target, **options)
@target = target
@options = options
end

みたいに定義されてて
ArgumentError: wrong number of arguments (given 2, expected 1)
になってキーワード引数の勉強しなくちゃわね

https://github.com/zunda/mastodon/tree/try-ruby300

github.comzunda/mastodon Your self-hosted, globally interconnected microblogging community, zunda's fork - zunda/mastodon
zunda

これは2.7.2と3.0.0-preview2の両方で完走するね

def m(arg, **opts)
p arg
p opts
end

m('arg', key: 'value')
m('arg', **{})