Skip to content

Instantly share code, notes, and snippets.

View varg90's full-sized avatar
🏠
Working from home

Alex Kuhn varg90

🏠
Working from home
View GitHub Profile
@varg90
varg90 / random_gem_module_ru.rb
Created October 11, 2025 08:35
Get random ri docs for documented Class/Module in the current project
# frozen_string_literal: true
require "rubygems"
require "bundler/setup"
require "open3"
# Получаем все загруженные модули/классы с именем
modules = ObjectSpace.each_object(Module).to_a.filter_map { it if it.name }
abort("Не найдено никаких модулей / классов") if modules.empty?
module PropertyService
module Event
class InitiateIntakeSheetProcess < Event::Base
def process
if property.units
if property.units.count == 1
process_for_one_unit(property.units.first)
else
process_for_multiple_units