Class: Unified2::ConfigFile
- Inherits:
-
Object
- Object
- Unified2::ConfigFile
- Defined in:
- lib/unified2/config_file.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, path) ⇒ ConfigFile
constructor
A new instance of ConfigFile.
Constructor Details
#initialize(type, path) ⇒ ConfigFile
Returns a new instance of ConfigFile.
6 7 8 9 10 11 12 |
# File 'lib/unified2/config_file.rb', line 6 def initialize(type, path) @type = type @path = path @data = {} @md5 = Digest::MD5.hexdigest(@path) import end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/unified2/config_file.rb', line 4 def data @data end |
#md5 ⇒ Object
Returns the value of attribute md5.
4 5 6 |
# File 'lib/unified2/config_file.rb', line 4 def md5 @md5 end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/unified2/config_file.rb', line 4 def path @path end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/unified2/config_file.rb', line 4 def type @type end |