class Stdout::SingleFile

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/asciinema/stdout.rb, line 10
def initialize(path)
  @path = path
end

Public Instance Methods

each(&blk) click to toggle source
# File lib/asciinema/stdout.rb, line 14
def each(&blk)
  open(path, 'r') do |f|
    Oj.sc_parse(FrameIterator.new(blk), f)
  end
end