Class: Txgh::Config::Providers::FileProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/txgh/config/providers/file_provider.rb

Constant Summary collapse

SCHEME =
'file'

Class Method Summary collapse

Class Method Details

.load(payload, parser, options = {}) ⇒ Object



12
13
14
# File 'lib/txgh/config/providers/file_provider.rb', line 12

def load(payload, parser, options = {})
  parser.load_file(payload)
end

.schemeObject



16
17
18
# File 'lib/txgh/config/providers/file_provider.rb', line 16

def scheme
  SCHEME
end

.supports?(scheme) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/txgh/config/providers/file_provider.rb', line 8

def supports?(scheme)
  scheme == SCHEME
end