Class: GraphqlTagPluck::Config
- Inherits:
-
Object
- Object
- GraphqlTagPluck::Config
- Defined in:
- lib/graphql_tag_pluck/config.rb
Constant Summary collapse
- CONFIG_FILE =
File.(".graphqltagpluckconfig.yaml", Dir.pwd)
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #load ⇒ Object
Constructor Details
#initialize ⇒ Config
14 15 16 |
# File 'lib/graphql_tag_pluck/config.rb', line 14 def initialize @options = {} end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/graphql_tag_pluck/config.rb', line 8 def @options end |
Class Method Details
.load ⇒ Object
10 11 12 |
# File 'lib/graphql_tag_pluck/config.rb', line 10 def self.load new.load end |
Instance Method Details
#load ⇒ Object
18 19 20 21 |
# File 'lib/graphql_tag_pluck/config.rb', line 18 def load load_file(CONFIG_FILE) @options end |