's Picture

Kevin

Rubyist, Backend Engineer

  • Home
  • About
  • Project
  • Contact Me
  • Search

Ruby

A collection of 15 posts

October 22, 2020

Ruby 學習筆記簿:Metaprogramming Workshop - The Legacy System

本篇要分享的是此書(在第三章)我蠻喜歡的範例之一,作者以說故事的方式講解本章節所介紹的題目,假設的情境是新進員工被會計部門賦予一項任務,目標是找出花費大於美金$99元的電腦配件。

Ruby Define_method Dynamic Methods Method Missing Methods

October 21, 2020

Ruby 學習筆記簿:Metaprogramming Quizzes

Quiz: Missing Lines 題目說明: 下面程式碼以圖表方式呈現,可看出物件與類別之間的關聯: ``` class MyClass end

Ruby Method Lookup Module

October 20, 2020

Ruby 學習筆記簿:Metaprogramming Workshop - Before Action

實作前準備 需要先了解以下主題: Method Wrappers: Around Aliases Method Wrappers: Refinement Wrapper Dynamic method: define_method Block & Scope 的基本認識 Singleton Class

Ruby Around Alias Refinement Wrapper Define_method Dynamic Methods

October 19, 2020

Ruby 學習筆記簿:Metaprogramming Ruby - Chapter 5 - Part II

Chapter 5: Class Definitions - Part II

Ruby Refinement Wrapper Prepended Wrapper Around Alias

October 19, 2020

Ruby 學習筆記簿:Metaprogramming Ruby - Chapter 5 - Part I

Chapter 5: Class Definitions - Part I “Where you learn another way to mix code and bindings at will”― Metaprogramming Ruby ―

Ruby Instance_eval Class_eval Around Alias

Page 1 of 3 Older Posts

Subscribe to Kevin newsletter

Get the latest and greatest from Kevin delivered straight to your inbox every week.

Kevin © 2022. Royce theme by JustGoodThemes.
Powered by Jekyll.

Back to top