Class: Kstats::Node::Probe::Variable::DSL
- Inherits:
-
Object
- Object
- Kstats::Node::Probe::Variable::DSL
- Defined in:
- lib/kstats/node/probe.rb
Instance Method Summary collapse
- #color(val) ⇒ Object
- #desc(val) ⇒ Object
-
#initialize(variable) ⇒ DSL
constructor
A new instance of DSL.
- #probe(&val) ⇒ Object
Constructor Details
#initialize(variable) ⇒ DSL
Returns a new instance of DSL.
96 97 98 |
# File 'lib/kstats/node/probe.rb', line 96 def initialize variable @variable = variable end |
Instance Method Details
#color(val) ⇒ Object
104 105 106 |
# File 'lib/kstats/node/probe.rb', line 104 def color val @variable.color = val end |
#desc(val) ⇒ Object
100 101 102 |
# File 'lib/kstats/node/probe.rb', line 100 def desc val @variable.desc = val end |
#probe(&val) ⇒ Object
108 109 110 |
# File 'lib/kstats/node/probe.rb', line 108 def probe &val @variable.probe = val end |