Files
news.gitea.happylizard.me/bin/gems/console-1.29.3/lib/console/event/generic.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

27 lines
406 B
Ruby

# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2019-2024, by Samuel Williams.
module Console
module Event
class Generic
def as_json(...)
to_hash
end
def to_json(...)
JSON.generate(as_json, ...)
end
def to_s
to_json
end
def emit(*arguments, **options)
Console.call(*arguments, event: self, **options)
end
end
end
end