Class: Serverspec::Subject

Inherits:
Object
  • Object
show all
Defined in:
lib/serverspec/subject.rb

Instance Method Summary collapse

Instance Method Details

#value(v = nil) ⇒ Object


3
4
5
6
7
8
9
10
# File 'lib/serverspec/subject.rb', line 3

def value(v=nil)
  if v.nil?
    @value
  else
    @value = v
    self
  end
end