Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-06-25から1日間の記事一覧

Ruby | Method | receiver

概要 Method#receiver -> object 詳細 このメソッドオブジェクトのレシーバを返却。 サンプルコード require 'tbpgr_utils' class Hoge attr_reader :id def initialize(id) @id = id end def hoge; end end class Hige attr_reader :id def initialize(id) …

Ruby on Rails | Asset Pipeline

概要 Railsが3.1から採用している *Asset Pipeline* について。 Asset Pipelineとは? Asset Pipelineは以下を行っています CoffeeScript や SCSS をコンパイルする *js/css* などがそれぞれ複数合った場合に *application.js/.css* に結合する *application…