Class: GemVersionCheck::Configuration
- Inherits:
-
Object
- Object
- GemVersionCheck::Configuration
- Defined in:
- lib/gem_version_check/configuration.rb
Instance Attribute Summary collapse
-
#allow_prerelease_dependencies ⇒ Object
readonly
Returns the value of attribute allow_prerelease_dependencies.
-
#github_host ⇒ Object
readonly
Returns the value of attribute github_host.
-
#ignore_major_version_change ⇒ Object
readonly
Returns the value of attribute ignore_major_version_change.
-
#show_progress_bar ⇒ Object
readonly
Returns the value of attribute show_progress_bar.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(settings = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(settings = {}) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/gem_version_check/configuration.rb', line 5 def initialize(settings = {}) @github_host = settings[:github_host] || "github.com" @sources = settings[:sources] @show_progress_bar = settings[:show_progress_bar] || false @ignore_major_version_change = settings[:ignore_major_version_change] || false @allow_prerelease_dependencies = settings[:allow_prerelease_dependencies] || false end |
Instance Attribute Details
#allow_prerelease_dependencies ⇒ Object (readonly)
Returns the value of attribute allow_prerelease_dependencies.
3 4 5 |
# File 'lib/gem_version_check/configuration.rb', line 3 def allow_prerelease_dependencies @allow_prerelease_dependencies end |
#github_host ⇒ Object (readonly)
Returns the value of attribute github_host.
3 4 5 |
# File 'lib/gem_version_check/configuration.rb', line 3 def github_host @github_host end |
#ignore_major_version_change ⇒ Object (readonly)
Returns the value of attribute ignore_major_version_change.
3 4 5 |
# File 'lib/gem_version_check/configuration.rb', line 3 def ignore_major_version_change @ignore_major_version_change end |
#show_progress_bar ⇒ Object (readonly)
Returns the value of attribute show_progress_bar.
3 4 5 |
# File 'lib/gem_version_check/configuration.rb', line 3 def @show_progress_bar end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
3 4 5 |
# File 'lib/gem_version_check/configuration.rb', line 3 def sources @sources end |