Class: Kstats::Node::Probe::Variable::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/kstats/node/probe.rb

Instance Method Summary collapse

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