Class: KF5::Configuration
- Inherits:
-
Object
- Object
- KF5::Configuration
- Defined in:
- lib/kf5/configuration.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#key ⇒ Object
Returns the value of attribute key.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
6 7 8 9 10 11 |
# File 'lib/kf5/configuration.rb', line 6 def initialize( = {}) .each { |key, value| instance_variable_set("@#{key}", value) } @properties = Properties.new([:properties] || {}) end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
4 5 6 |
# File 'lib/kf5/configuration.rb', line 4 def domain @domain end |
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/kf5/configuration.rb', line 4 def key @key end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
3 4 5 |
# File 'lib/kf5/configuration.rb', line 3 def properties @properties end |