File: properties.rb

package info (click to toggle)
ruby-specinfra 2.76.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,144 kB
  • sloc: ruby: 9,280; sh: 4; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'singleton'

module Specinfra
  class Properties
    include Singleton
    def initialize
      @prop = {}
    end
    def properties(prop=nil)
      if ! prop.nil?
        @prop = prop
      end
      @prop
    end
  end
end