Class: Jsearch::Configuration
- Inherits:
-
Object
- Object
- Jsearch::Configuration
- Includes:
- Singleton
- Defined in:
- lib/jsearch/configuration.rb
Overview
General shared configurations
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#cls ⇒ Object
Returns the value of attribute cls.
-
#import ⇒ Object
Returns the value of attribute import.
-
#methods ⇒ Object
Returns the value of attribute methods.
-
#package ⇒ Object
Returns the value of attribute package.
-
#silent ⇒ Object
Returns the value of attribute silent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/jsearch/configuration.rb', line 15 def initialize @cls = nil @silent = false @package = false @import = false @methods = false @base = "https://docs.oracle.com/javase/8/docs/api" parse end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
13 14 15 |
# File 'lib/jsearch/configuration.rb', line 13 def base @base end |
#cls ⇒ Object
Returns the value of attribute cls.
13 14 15 |
# File 'lib/jsearch/configuration.rb', line 13 def cls @cls end |
#import ⇒ Object
Returns the value of attribute import.
13 14 15 |
# File 'lib/jsearch/configuration.rb', line 13 def import @import end |
#methods ⇒ Object
Returns the value of attribute methods.
13 14 15 |
# File 'lib/jsearch/configuration.rb', line 13 def methods @methods end |
#package ⇒ Object
Returns the value of attribute package.
13 14 15 |
# File 'lib/jsearch/configuration.rb', line 13 def package @package end |
#silent ⇒ Object
Returns the value of attribute silent.
13 14 15 |
# File 'lib/jsearch/configuration.rb', line 13 def silent @silent end |