乐正

Actions speak louder than words.

README

About-Yuez.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 关于乐正
class Yuez
  include Lucky

  attr_reader :name, :title, :description, :contact

  def name
    '乐正 Yuez'
  end

  def title
    'Web开发者'
  end

  def description
    [
      '此人比较无趣,对娱乐活动无爱。',
      '爱简洁的事物。',
      '前后端开发样样都经手,样样都不精通。',
      '珍惜时间,热爱生命。'
    ].join
  end

  def contact
    {
        email: 'i@yuez.me',
       github: 'https://github.com/zgs225',
           ps: 'Talk is cheap, show me the code.'
    }
  end
end

module Lucky
  module InstanceMethods
    attr_reader :lover

    def lover
      'Lucky'
    end
  end

  self.included(receiver)
    receiver.send :include, InstanceMethods
  end
end

Comments