Method: Inspec::Attribute#value

Defined in:
lib/inspec/objects/attribute.rb

#value(newvalue = nil) ⇒ Object

implicit call is done by inspec to determine the value of an attribute



13
14
15
16
17
18
# File 'lib/inspec/objects/attribute.rb', line 13

def value(newvalue = nil)
  unless newvalue.nil?
    @value = newvalue
  end
  @value || default
end