{"id":2157,"date":"2013-02-27T15:22:23","date_gmt":"2013-02-27T06:22:23","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=2157"},"modified":"2018-11-14T16:33:56","modified_gmt":"2018-11-14T07:33:56","slug":"rails-alias_method_chain-%e6%97%a2%e5%ad%98%e3%81%ae%e5%87%a6%e7%90%86%e3%82%92%e4%bf%ae%e6%ad%a3%e3%81%99%e3%82%8b%e5%b8%b8%e5%a5%97%e6%89%8b%e6%ae%b5","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2013\/02\/27\/rails-alias_method_chain-%e6%97%a2%e5%ad%98%e3%81%ae%e5%87%a6%e7%90%86%e3%82%92%e4%bf%ae%e6%ad%a3%e3%81%99%e3%82%8b%e5%b8%b8%e5%a5%97%e6%89%8b%e6%ae%b5\/","title":{"rendered":"Rails: alias_method_chain: \u65e2\u5b58\u306e\u51e6\u7406\u3092\u4fee\u6b63\u3059\u308b\u5e38\u5957\u624b\u6bb5"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u65e2\u5b58\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u52d5\u4f5c\u3092\u5c11\u3057\u3060\u3051\u5909\u66f4\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u5834\u5408\u306b\u4f7f\u308f\u308c\u308b\u5e38\u5957\u624b\u6bb5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u3068\u3042\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u30ed\u30b0\u51fa\u529b\u30e2\u30b8\u30e5\u30fc\u30eb<\/h2>\n<p>\u3068\u3042\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u30ed\u30b0\u51fa\u529b\u6a5f\u80fd\u304c\u5fc5\u8981\u306b\u306a\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a Logging \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module Logging\r\n\r\n  def log(message)\r\n    puts message\r\n  end\r\n\r\nend<\/pre>\n<p>log \u30e1\u30bd\u30c3\u30c9\u306b\u6587\u5b57\u5217\u3092\u6e21\u3059\u3068\u3001\u305d\u308c\u304c\u30ed\u30b0\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">include Logging\r\nlog('Hello')<\/pre>\n<p>\u3068\u3059\u308b\u3068\u3001<\/p>\n<pre class=\"lang:default decode:true\">Hello<\/pre>\n<p>\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30ed\u30b0\u306b\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u4ed8\u52a0\u3057\u305f\u3044<\/h2>\n<p>\u51fa\u529b\u3055\u308c\u308b\u30ed\u30b0\u306b\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u542b\u307e\u308c\u305f\u307b\u3046\u304c\u5b09\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u547c\u3073\u51fa\u3057\u5074\u3067\u82e6\u52b4\u306f\u3057\u305f\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">log(\"#{Time.now} \u30e1\u30c3\u30bb\u30fc\u30b8\uff11\")\r\nlog(\"#{Time.now} \u30e1\u30c3\u30bb\u30fc\u30b8\uff12\")<\/pre>\n<p>&nbsp;<\/p>\n<h2>alias_method \u3067\u7f6e\u304d\u63db\u3048\u308b<\/h2>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b alias_method \u3092\u4f7f\u7528\u3057\u3066\u65e2\u5b58\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module Logging\r\n\r\n  def log(message)\r\n    puts message\r\n  end\r\n\r\n  # (1) \u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u4ed8\u52a0\u3057\u3066\u65e2\u5b58\u306e\u51e6\u7406\u306b\u6e21\u3059\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b.\r\n  def log_with_timestamp(message)\r\n    log_without_timestamp(\"[#{Time.now}]#{message}\")\r\n  end\r\n\r\n  # (2) log_without_timestamp \u3067\u65e2\u5b58\u306e log \u3092\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b.\r\n  alias_method :log_without_timestamp, :log\r\n\r\n  # (3) log \u306f log_with_timestamp \u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u3059\u308b.\r\n  alias_method :log, :log_with_timestamp\r\n\r\nend\r\n\r\n# \u52d5\u4f5c\u78ba\u8a8d.\r\ninclude Logging\r\nlog('Hello')<\/pre>\n<p>\u3084\u308b\u3079\u304d\u3053\u3068\u306f 3 \u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>(1) \u6700\u521d\u306b\u3001\u6e21\u3055\u308c\u305f\u6587\u5b57\u5217\u306b\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u4ed8\u52a0\u3057\u3066\u65e2\u5b58\u306e\u51e6\u7406\u306b\u6e21\u3059 log_with_timestamp \u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u65e2\u5b58\u306e\u51e6\u7406\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u306f log \u3067\u306f\u306a\u304f log_without_timestamp \u3068\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<li>(2) \u6b21\u306b\u3001alias_method \u3067 log_without_timestamp \u3092 log \u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u3068\u3057\u307e\u3059\u3002<del>\u3053\u306e\u6642\u70b9\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u51e6\u7406\u306f log_without_timestamp \u3092\u901a\u3057\u3066\u3057\u304b\u547c\u3073\u51fa\u3059\u3053\u3068\u306f\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/del>\uff082016-05-29: \u8a18\u8f09\u5185\u5bb9\u306b\u8aa4\u308a\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002\u6253\u3061\u6d88\u3057\u7dda\u304c\u5165\u3063\u3066\u3044\u308b\u7b87\u6240\u306f\u4ee5\u4e0b\u306e (3) \u306e\u3068\u3053\u308d\u306b\u79fb\u52d5\u3057\u307e\u3057\u305f\u3002\uff09<\/li>\n<li>(3) \u6700\u5f8c\u306b\u3001alias_method \u3067 log \u306f log_with_timestamp \u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u51e6\u7406\u306f log_without_timestamp \u3092\u901a\u3057\u3066\u3057\u304b\u547c\u3073\u51fa\u3059\u3053\u3068\u306f\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u65e2\u5b58\u306e\u51e6\u7406\u3092\u30e9\u30c3\u30d7\u3059\u308b\u5f62\u3067\u72ec\u81ea\u306e\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>alias_method_chain \u3067\u7f6e\u304d\u63db\u3048\u308b<\/h2>\n<p>ActiveSupport \u304c\u63d0\u4f9b\u3059\u308b alias_method_chain \u3092\u4f7f\u3046\u3068\u3001\u3088\u308a\u7dba\u9e97\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module Logging\r\n\r\n  def log(message)\r\n    puts message\r\n  end\r\n\r\n  def log_with_timestamp(message)\r\n    log_without_timestamp(\"[#{Time.now}]#{message}\")\r\n  end\r\n\r\n  # \u3053\u3053\u304c\u5909\u308f\u3063\u305f.\r\n  alias_method_chain :log, :timestamp\r\nend\r\n\r\n# \u52d5\u4f5c\u78ba\u8a8d.\r\ninclude Logging\r\nlog('Hello')<\/pre>\n<p>\u30b3\u30e1\u30f3\u30c8\u3067\u300c# \u3053\u3053\u304c\u5909\u308f\u3063\u305f.\u300d\u3068\u66f8\u3044\u305f\u90e8\u5206\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u9055\u3044\u306f\u3053\u306e\u90e8\u5206\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>alias_method_chain \u3092\u7528\u3044\u308b\u3068<\/p>\n<pre class=\"lang:ruby decode:true\">alias_method :log_without_timestamp, :log\r\nalias_method :log, :log_with_timestamp<\/pre>\n<p>\u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u3092<\/p>\n<pre class=\"lang:ruby decode:true\">alias_method_chain :log, :timestamp<\/pre>\n<p>\u3068\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u884c\u6570\u304c\u77ed\u304f\u306a\u3063\u305f\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u30b3\u30fc\u30c9\u3092\u898b\u305f\u6642\u306b\u610f\u56f3\u304c\u4f1d\u308f\u308a\u3084\u3059\u304f\u306a\u3063\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>alias_method_chain \u306b\u306f\u4ee5\u4e0b\u306e\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u65b0\u3057\u3044\u30e1\u30bd\u30c3\u30c9\u306f xxx_with_xxx \u3068\u3044\u3046\u540d\u524d\u3067\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<li>\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30e1\u30bd\u30c3\u30c9\u306f xxx_without_xxx \u3068\u3044\u3046\u540d\u524d\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u3002<\/li>\n<\/ul>\n<p>\u6700\u521d\u306e alias_method \u3092\u7528\u3044\u305f\u4f8b\u3067\u3082\u4e0a\u8a18\u306e\u30eb\u30fc\u30eb\u3092\u6e80\u305f\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001alias_method \u306b\u306f\u305d\u306e\u3088\u3046\u306a\u6c7a\u307e\u308a\u306f\u306a\u304f\u3001\u30e1\u30bd\u30c3\u30c9\u540d\u306f\u81ea\u7531\u306b\u6c7a\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u81ea\u7531\u3059\u304e\u308b\u3068\u3001\u300c\u65e2\u5b58\u306e\u51e6\u7406\u3092\u7f6e\u304d\u63db\u3048\u305f\u3044\u300d\u2192\u300calias_method \u3092\u4f7f\u3046\u300d\u2192\u300c\u30e1\u30bd\u30c3\u30c9\u540d\u306f\u3069\u3046\u3057\u3088\u3046\u30fb\u30fb\u300d\u3068\u8ff7\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u70b9 alias_method_chain \u3092\u4f7f\u3046\u5834\u5408\u306f\u300c\u65e2\u5b58\u306e\u51e6\u7406\u3092\u7f6e\u304d\u63db\u3048\u305f\u3044\u300d\u2192\u300calias_method_chain \u3092\u4f7f\u3046\u300d\u2192\u300c\u30e1\u30bd\u30c3\u30c9\u540d\u306f _with_xxx\/_without_xxx\u300d\u3068\u8ff7\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u305b\u3093\u3002with_xxx\/without_xxx \u3068\u3044\u3046\u547d\u540d\u30eb\u30fc\u30eb\u306f\u5206\u304b\u308a\u3084\u3059\u3044\u898f\u5f8b\u3092\u751f\u307f\u51fa\u3059\u826f\u3044\u5236\u7d04\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30ed\u30b0\u306b\u30d7\u30ed\u30bb\u30b9 ID \u3082\u4ed8\u52a0\u3057\u305f\u3044<\/h2>\n<p>\u4eca\u5ea6\u306f\u30ed\u30b0\u306b\u30d7\u30ed\u30bb\u30b9 ID \u3082\u4ed8\u52a0\u3057\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u306e\u72b6\u614b\u3067\u30ed\u30b0\u306b\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u4ed8\u52a0\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u52d5\u4f5c\u3092\u58ca\u3055\u306a\u3044\u3088\u3046\u306b\u5b9f\u73fe\u3057\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>alias_method_chain \u3092\u7406\u89e3\u3057\u305f\u4eca\u306a\u3089\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true\">module Logging\r\n\r\n  def log(message)\r\n    puts message\r\n  end\r\n\r\n  def log_with_timestamp(message)\r\n    log_without_timestamp(\"[#{Time.now}]#{message}\")\r\n  end\r\n  alias_method_chain :log, :timestamp\r\n\r\n  # \u3053\u3053\u3092\u8ffd\u52a0.\r\n  def log_with_pid(message)\r\n    log_without_pid(\"[#{Process.pid}]#{message}\")\r\n  end\r\n  alias_method_chain :log, :pid\r\nend\r\n\r\n# \u52d5\u4f5c\u78ba\u8a8d.\r\ninclude Logging\r\nlog('Hello')<\/pre>\n<p>log_with_pid \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3057\u3066\u3001\u300calias_method_chain :log, :pid\u300d\u3068\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b alias_method_chain \u3067\u7f6e\u304d\u63db\u3048\u3089\u308c\u305f\u3082\u306e\u3092\u3001\u3055\u3089\u306b alias_method_chain \u3067\u7f6e\u304d\u63db\u3048\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u7c21\u5358\u306b\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u4e00\u3064\u306b <a href=\"http:\/\/www.techscore.com\/tech\/DesignPattern\/Decorator.html\/\">Decorator \u30d1\u30bf\u30fc\u30f3<\/a>\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002 Decorator \u30d1\u30bf\u30fc\u30f3\u306f\u3001\u65e2\u5b58\u306e\u30af\u30e9\u30b9\u3092\u30c7\u30b3\u30ec\u30fc\u30c8\u3057\u3066\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3082\u306e\u3067\u3059\u304c\u3001alias_method_chain \u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u306f\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u3059\u308b Decorator \u30d1\u30bf\u30fc\u30f3\u3068\u8003\u3048\u3066\u3082\u826f\u3055\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Ruby2.0 \u306e Module.prepend \u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u904b\u547d\u304b\u3082<\/h2>\n<p>alias_method_chain \u3092\u898b\u3066\u304d\u305f\u308f\u3051\u3067\u3059\u304c\u3001Ruby2.0 \u3067\u767b\u5834\u3059\u308b Module.prepend \u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u904b\u547d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff08\u53c2\u7167: \u300c<a title=\"Ruby2.0\u306eModule.prepend\u306f\u5982\u4f55\u306b\u3057\u3066alias_method_chain\u3092\u64b2\u6ec5\u3059\u308b\u306e\u304b\uff01\uff1f\" href=\"http:\/\/www.techscore.com\/blog\/2013\/01\/22\/ruby2-0%e3%81%aemodule-prepend%e3%81%af%e5%a6%82%e4%bd%95%e3%81%ab%e3%81%97%e3%81%a6alias_method_chain%e3%82%92%e6%92%b2%e6%bb%85%e3%81%99%e3%82%8b%e3%81%ae%e3%81%8b%ef%bc%81%ef%bc%9f\/\">Ruby2.0\u306eModule.prepend\u306f\u5982\u4f55\u306b\u3057\u3066alias_method_chain\u3092\u64b2\u6ec5\u3059\u308b\u306e\u304b\uff01\uff1f<\/a>\u300d\uff09<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u5b9a\u5f62\u30d1\u30bf\u30fc\u30f3\u306b\u898f\u5f8b\u3092\u4e0e\u3048\u7d9a\u3051\u3066\u304d\u305f alias_method_chain \u306e\u305d\u306e\u5fc3\u306f\u3001\u3044\u3064\u307e\u3067\u3082\u5fd8\u308c\u305a\u306b\u3044\u305f\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u65e2\u5b58\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u52d5\u4f5c\u3092\u5c11\u3057\u3060\u3051\u5909\u66f4\u3057\u305f\u3044\u3001\u3068\u3044\u3046\u5834\u5408\u306b\u4f7f\u308f\u308c\u308b\u5e38\u5957\u624b\u6bb5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2013\/02\/27\/rails-alias_method_chain-%e6%97%a2%e5%ad%98%e3%81%ae%e5%87%a6%e7%90%86%e3%82%92%e4%bf%ae%e6%ad%a3%e3%81%99%e3%82%8b%e5%b8%b8%e5%a5%97%e6%89%8b%e6%ae%b5\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[68,22,24,90],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2157"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=2157"}],"version-history":[{"count":2,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2157\/revisions"}],"predecessor-version":[{"id":10586,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2157\/revisions\/10586"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=2157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=2157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=2157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}