[TIPS] Markdown で ふりがな (ルビ) を使うには
ものすごくニッチなニーズかもしれないけども、Markdown でふりがなを振りたいとき、どうすればいいか?
>> def foo( x ) >> case ?> when x > 2 >> puts "cond 1." >> when x > 4 >> puts "cond 2." >> end >> end => nil
>> foo( 1 ) => nil >> foo( 3 ) cond 1. => nil >> foo( 4 ) cond 1. => nil >> foo( 5 ) cond 1. => nil
cond 1.
しか呼ばれない、ということで。
>> h = { a: 1, b: 2 } => {:a=>1, :b=>2}
2014-06-02追記: MDH 2.11.0 で修正
>> h[:a] => 1
>> class Foo >> private >> def foo; p "foo"; end >> end => nil >> n=Foo.new => # >> n.foo NoMethodError: private method `foo' called for # from (irb):6 from /Users/honyarara/.rbenv/versions/2.0.0-p247/bin/irb:12:in `' >> n.send(:foo) "foo" => "foo"