Class: Specinfra::Properties
- Inherits:
-
Object
- Object
- Specinfra::Properties
- Includes:
- Singleton
- Defined in:
- lib/specinfra/properties.rb
Instance Method Summary collapse
-
#initialize ⇒ Properties
constructor
A new instance of Properties.
- #properties(prop = nil) ⇒ Object
Constructor Details
#initialize ⇒ Properties
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 |