require "patternmatching" include PatternMatching # Example for matching Hash dict = build { {:name => "Taro", :age => 5} } make dict do seems as {{:name => :name}} do puts "He is " + name end seems something do puts "no name" end end # => "He is Taro"