Class: Dtrace::Provider::ProbeDef

Inherits:
Object
  • Object
show all
Defined in:
lib/dtrace/provider/probedef.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, function) ⇒ ProbeDef

Returns a new instance of ProbeDef.



12
13
14
15
16
# File 'lib/dtrace/provider/probedef.rb', line 12

def initialize(name, function)
  @name = name.to_s
  @function = function.to_s
  @args = []
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



10
11
12
# File 'lib/dtrace/provider/probedef.rb', line 10

def args
  @args
end

#functionObject (readonly)

Returns the value of attribute function.



9
10
11
# File 'lib/dtrace/provider/probedef.rb', line 9

def function
  @function
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/dtrace/provider/probedef.rb', line 9

def name
  @name
end

Instance Method Details

#argcObject



18
19
20
# File 'lib/dtrace/provider/probedef.rb', line 18

def argc
  @args.length
end