class Copyleaks::SubmissionExcludeCode
Public Class Methods
Source
# File lib/copyleaks/models/submissions/properties/exclude_code.rb, line 28 def initialize( comments = false ) @comments = comments end
@param [Boolean] Exclude comments from the scan.
Public Instance Methods
Source
# File lib/copyleaks/models/submissions/properties/exclude_code.rb, line 34 def as_json(*_args) { comments: @comments, }.select { |_k, v| !v.nil? } end
Source
# File lib/copyleaks/models/submissions/properties/exclude_code.rb, line 40 def to_json(*options) as_json(*options).to_json(*options) end