class PuppetStrings::Yard::Parsers::JSON::TaskStatement
Represents the Puppet
Task statement.
Attributes
comments_range[R]
docstring[R]
file[R]
json[R]
line[R]
source[R]
Public Class Methods
new(json, source, file)
click to toggle source
# File lib/puppet-strings/yard/parsers/json/task_statement.rb, line 8 def initialize(json, source, file) @file = file @source = source @json = json @line = 0 @comments_range = nil @docstring = YARD::Docstring.new(@json['description']) end
Public Instance Methods
comments()
click to toggle source
# File lib/puppet-strings/yard/parsers/json/task_statement.rb, line 29 def comments docstring.all end
comments_hash_flag()
click to toggle source
# File lib/puppet-strings/yard/parsers/json/task_statement.rb, line 21 def comments_hash_flag false end
name()
click to toggle source
# File lib/puppet-strings/yard/parsers/json/task_statement.rb, line 33 def name File.basename(@file).gsub('.json', '') || '' end
parameters()
click to toggle source
# File lib/puppet-strings/yard/parsers/json/task_statement.rb, line 17 def parameters json['parameters'] || {} end
show()
click to toggle source
# File lib/puppet-strings/yard/parsers/json/task_statement.rb, line 25 def show '' end