Class: YangJson

Inherits:
YangProperty show all
Defined in:
lib/puppet/property/yang_json.rb

Overview

This subclass of YangProperty manages YANG JSON content.

Instance Method Summary collapse

Methods inherited from YangProperty

#insync?, #should, #yang_content

Instance Method Details

#inline_yang?(yang_or_file) ⇒ Boolean

Determine if the specified value is inline YANG or a file path

Returns:

  • (Boolean)


7
8
9
# File 'lib/puppet/property/yang_json.rb', line 7

def inline_yang?(yang_or_file)
  !/^{/.match(yang_or_file).nil?
end