2008-02-18から1日間の記事一覧
class MyHash1 include Enumerable Pair = Struct.new( :key, :value ) def initialize @table = [] end def []( key ) @table.each do |pair| return pair.value if pair.key.eql?( key ) end return nil end def []=( key, value ) @table.each do |pair| …
押しても何の反応なし。FirefoxでやってみるとなにやらJSでエラーが発生している。