Milkeclair.profile do desc :beginner like :beautiful_dsl end class Milkeclair include Singleton attr_reader :_desc, :_like def self.profile(&block) block_given? ? instance.instance_exec(&block) : instance end def desc(*args) me = :"@_#{__callee__}" args.empty? ? p(instance_variable_get(me)) : instance_variable_set(me, args) end alias_method :like, :desc end
milkeclair
1 commit
M
milkeclair
@milkeclair
- github.com/milkeclair
- Joined October 2026
Commit activity
1 commit in the last 30 days
longest streak 1 day
125 / 150 XP25 XP to operator