{"id":7797,"date":"2022-02-23T05:51:17","date_gmt":"2022-02-22T20:51:17","guid":{"rendered":"https:\/\/yumishin.com\/?p=7797"},"modified":"2022-02-23T05:51:17","modified_gmt":"2022-02-22T20:51:17","slug":"rubocop-5","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=7797","title":{"rendered":"\u3010Rails\u3011Class: RuboCop::Cop::Layout::SpaceInsideStringInterpolation Inherits\u3078\u306e\u5bfe\u5fdc"},"content":{"rendered":"<p>Rubocop\u306e\u8b66\u544a\u306b\u3064\u3044\u3066\u3001\u5bfe\u5fdc\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"i-0\">Class: RuboCop::Cop::Layout::SpaceInsideStringInterpolation Inherits<\/h2>\n<h3 id=\"i-1\">\u7d50\u8ad6<\/h3>\n<p>\u3053\u306e\u8b66\u544a\u306f\u3001#{ sample }\u307f\u305f\u3044\u306a\u6587\u5b57\u5217\u304c\u3042\u3063\u305f\u3068\u304d\u306b\u3001sample\u3068\u3044\u3046\u6587\u5b57\u5217\u3068\u3001{ }\u306e\u9593\u306b\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30fc\u30c9<\/span><\/p>\n<pre><code># \u30c0\u30e1\u306a\u4f8b\n   var = \"This is the #{ space } example\"\n\n# \u826f\u3044\u4f8b\n   var = \"This is the #{no_space} example\"\n<\/code><\/pre>\n<\/div>\n<p>\ud83d\udc47\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.rubydoc.info\/github\/bbatsov\/RuboCop\/RuboCop\/Cop\/Layout\/SpaceInsideStringInterpolation\">https:\/\/www.rubydoc.info\/github\/bbatsov\/RuboCop\/RuboCop\/Cop\/Layout\/SpaceInsideStringInterpolation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rubocop\u306e\u8b66\u544a\u306b\u3064\u3044\u3066\u3001\u5bfe\u5fdc\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 Class: RuboCop::Cop::Layout::SpaceInsideStringInterpolation Inherits \u7d50\u8ad6 \u3053\u306e\u8b66\u544a\u306f\u3001#{ samp &#8230; <\/p>\n","protected":false},"author":1,"featured_media":7744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272],"tags":[],"class_list":{"0":"post-7797","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-programing","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7797"}],"version-history":[{"count":2,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7797\/revisions"}],"predecessor-version":[{"id":7884,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7797\/revisions\/7884"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/7744"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}