Tbpgr Blog

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

2014-11-13から1日間の記事一覧

Ruby | Range | step

概要 Range#step(s = 1) {|item| ... } -> self Range#step(s = 1) -> Enumerator 詳細 範囲内の要素を s おきに繰り返却 サンプルコード require 'tbpgr_utils' class Hoge attr_accessor :count def initialize(count) @count = count end def succ copy =…