Sha256: 69c63e9cdd3865de96c63794802eb663bc14ae54dd96cc38e1167f0cd9b14992

Contents?: true

Size: 423 Bytes

Versions: 18

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module ScriptCore
  Stat = Struct.new(:instructions, :memory, :bytes_in, :time, :total_instructions) do
    def initialize(options)
      super(options[:instructions], options[:memory], options[:bytes_in], options[:time], options[:total_instructions])
    end
  end

  Stat::Null = Stat.new(
    instructions: 0,
    memory: 0,
    bytes_in: 0,
    time: 0,
    total_instructions: 0
  )
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
script_core-0.3.2 lib/script_core/stat.rb
script_core-0.3.0 lib/script_core/stat.rb
script_core-0.2.7 lib/script_core/stat.rb
script_core-0.2.6 lib/script_core/stat.rb
script_core-0.2.5 lib/script_core/stat.rb
script_core-0.2.4 lib/script_core/stat.rb
script_core-0.2.3 lib/script_core/stat.rb
script_core-0.2.2 lib/script_core/stat.rb
script_core-0.2.1 lib/script_core/stat.rb
script_core-0.2.0 lib/script_core/stat.rb
script_core-0.1.1 lib/script_core/stat.rb
script_core-0.1.0 lib/script_core/stat.rb
script_core-0.0.6 lib/script_core/stat.rb
script_core-0.0.5 lib/script_core/stat.rb
script_core-0.0.4 lib/script_core/stat.rb
script_core-0.0.3 lib/script_core/stat.rb
script_core-0.0.2 lib/script_core/stat.rb
script_core-0.0.1 lib/script_core/stat.rb