Class: YangJson
- Inherits:
-
YangProperty
- Object
- Puppet::Property
- YangProperty
- YangJson
- Defined in:
- lib/puppet/property/yang_json.rb
Overview
This subclass of YangProperty manages YANG JSON content.
Instance Method Summary collapse
-
#inline_yang?(yang_or_file) ⇒ Boolean
Determine if the specified value is inline YANG or a file path.
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
7 8 9 |
# File 'lib/puppet/property/yang_json.rb', line 7 def inline_yang?(yang_or_file) !/^{/.match(yang_or_file).nil? end |