Class: Specinfra::Properties

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/specinfra/properties.rb

Instance Method Summary collapse

Constructor Details

#initializeProperties

Returns a new instance of Properties.



6
7
8
# File 'lib/specinfra/properties.rb', line 6

def initialize
  @prop = {}
end

Instance Method Details

#properties(prop = nil) ⇒ Object



9
10
11
12
13
14
# File 'lib/specinfra/properties.rb', line 9

def properties(prop=nil)
  if ! prop.nil?
    @prop = prop
  end
  @prop
end