Class: Dtrace::Provider::ProbeDef
- Inherits:
-
Object
- Object
- Dtrace::Provider::ProbeDef
- Defined in:
- lib/dtrace/provider/probedef.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #argc ⇒ Object
-
#initialize(name, function) ⇒ ProbeDef
constructor
A new instance of ProbeDef.
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
#args ⇒ Object
Returns the value of attribute args.
10 11 12 |
# File 'lib/dtrace/provider/probedef.rb', line 10 def args @args end |
#function ⇒ Object (readonly)
Returns the value of attribute function.
9 10 11 |
# File 'lib/dtrace/provider/probedef.rb', line 9 def function @function end |
#name ⇒ Object (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
#argc ⇒ Object
18 19 20 |
# File 'lib/dtrace/provider/probedef.rb', line 18 def argc @args.length end |