2019-09-08から1日間の記事一覧

Ruby のブロック構文の中身を文字列として取得する

using Module.new { refine RubyVM::InstructionSequence do def to_h %i( magic major_version minor_version format_type misc label path absolute_path first_lineno type locals args catch_table bytecode ).zip(to_a).to_h end end using self refine…