Class: TimeSeq

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/time_seq.rb,
lib/time_seq/version.rb

Constant Summary collapse

Attrs =
%w{from step to}.tap do |attrs|
  attrs.each do |attr|
    attr_accessor attr
    private attr + '='
  end
end
VERSION =
"0.1.0"

Instance Method Summary collapse

Constructor Details

#initialize(opt = {}) ⇒ TimeSeq

Returns a new instance of TimeSeq.



6
7
8
9
# File 'lib/time_seq.rb', line 6

def initialize(opt = {})
  extract opt
  build_enum
end

Instance Method Details

#inspectObject



25
26
27
# File 'lib/time_seq.rb', line 25

def inspect
  "#<#{self.class}:#{object_id} #{inspect_attrs}>"
end