Class: Bane::ConfigurationParser
- Inherits:
-
Object
- Object
- Bane::ConfigurationParser
- Defined in:
- lib/bane/configuration_parser.rb
Instance Attribute Summary collapse
-
#configurations ⇒ Object
readonly
Returns the value of attribute configurations.
Instance Method Summary collapse
-
#initialize(*args) ⇒ ConfigurationParser
constructor
A new instance of ConfigurationParser.
- #warn_about_deprecation ⇒ Object
Constructor Details
#initialize(*args) ⇒ ConfigurationParser
Returns a new instance of ConfigurationParser.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bane/configuration_parser.rb', line 7 def initialize(*args) warn_about_deprecation() @configurations = [] @configurations = case args[0] when String, Integer map_integer_and_behavior_arguments(*args) when Hash map_hash_arguments(args[0]) else raise ConfigurationError, "Unknown configuration arguments #{args.inspect}" end end |
Instance Attribute Details
#configurations ⇒ Object (readonly)
Returns the value of attribute configurations.
5 6 7 |
# File 'lib/bane/configuration_parser.rb', line 5 def configurations @configurations end |
Instance Method Details
#warn_about_deprecation ⇒ Object
21 22 23 |
# File 'lib/bane/configuration_parser.rb', line 21 def warn_about_deprecation warn "Kernel#Configuration() and ConfigurationParser are deprecated. Please directly construct an array of BehaviorServers to pass to Launcher." end |