summaryrefslogtreecommitdiff
path: root/ext/fiddle/lib/fiddle/function.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fiddle/lib/fiddle/function.rb')
-rw-r--r--ext/fiddle/lib/fiddle/function.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/fiddle/lib/fiddle/function.rb b/ext/fiddle/lib/fiddle/function.rb
index 07a072e..ab7496e 100644
--- a/ext/fiddle/lib/fiddle/function.rb
+++ b/ext/fiddle/lib/fiddle/function.rb
@@ -6,6 +6,9 @@ module Fiddle
# The address of this function
attr_reader :ptr
+ # The name of this function
+ attr_reader :name
+
# The integer memory location of this function
def to_i
ptr.to_i