Sha256: fb16c94184e5ade31c7d4b0802305e6de613ce842cb6446475b48580b6e43187

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

require_relative "gem_with_c_extension/version"
require_relative "gem_with_c_extension/gem_with_c_extension"

# our example module with one method
module GemWithCExtension
  class Error < StandardError; end

  # NOTE: how hello calls the exposed C-extension called hello_from_c_ext
  def self.hello(name)
    puts hello_from_c_ext(name)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gem_with_c_extension-0.0.1 lib/gem_with_c_extension.rb