alias unhappy happy
unhappy when Weekday.now in [1,3,5]
happy when Weekday.now in [2,4,6]
me = People.new
me.singleton_class.class_eval do
def happy?; true; end
end
str = %w(h a p p y).join
eval "def #{str}; '#{str}'.prepend('i just ') end"
send str
const FOO = "FOO"
const BAR = "BAR"
console.log(`${FOO}${BAR}`) // => "FOOBAR"
最开心的难道不是
再顺带总结一下不开心的