Skip to content
View milkeclair's full-sized avatar
🗿
🗿

Sponsoring

@yksr-melt

Highlights

  • Pro

Block or report milkeclair

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
milkeclair/README.md
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

Pinned Loading

  1. z z Public

    A zsh utility library for me who can't memorize shell script syntax.

    Shell 4

  2. rename rename Public

    TypeScript

  3. js_playground js_playground Public

    フレームワーク作ったりとか

    TypeScript

  4. any_logger any_logger Public

    A DSL for simplifying modification of Rails ActiveSupport Instrumentation API

    Ruby

  5. minecraft minecraft Public

    Java