Class: Inline::C

Inherits:
Object show all
Defined in:
lib/fastruby/inline_extension.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#incObject (readonly)

Returns the value of attribute inc.



23
24
25
# File 'lib/fastruby/inline_extension.rb', line 23

def inc
  @inc
end

Instance Method Details

#module_nameObject



25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/fastruby/inline_extension.rb', line 25

def module_name
   unless defined? @module_name then
     module_name = if @mod.name
        @mod.name.gsub('::','__')
      else
        rand(1000000000000000).to_s
      end
     md5 = Digest::MD5.new
     @sig.keys.sort_by { |x| x.to_s }.each { |m| md5 << m.to_s }
     @module_name = "Inline_#{module_name}_#{md5}"
   end
   @module_name
end