Sha256: 49f096dbbcd80ee0f0fbdbf9e1850a1fb3a09288046361d9b5955b15870cd4b0

Contents?: true

Size: 244 Bytes

Versions: 1

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true

#  callbacks methods here
class Atome
  def schedule_callback(proc)
    instance_exec(&proc) if proc.is_a?(Proc)
  end

  def read_callback(file, proc)
    instance_exec(file, &proc) if proc.is_a?(Proc)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.5.1.4 lib/atome/helpers/callbacks.rb