Title / Description
Code class ObscuringReferences attr_reader :data def initialize(data) @data = data end def diameters data.map { |d| d[0] + (d[1] * 2)} end end # このクラスの初期化には2次元配列が必要 # @data = [[1,2], [3,4], [5,6]]
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code