Class: Txgh::Config::Providers::RawProvider

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

Constant Summary collapse

SCHEME =
'raw'

Class Method Summary collapse

Class Method Details

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



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

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

.schemeObject



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

def scheme
  SCHEME
end

.supports?(scheme) ⇒ Boolean

Returns:

  • (Boolean)


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

def supports?(scheme)
  scheme == SCHEME
end