Class: AdLint::CodeStructure

Inherits:
Object
  • Object
show all
Defined in:
lib/adlint/code.rb

Overview

DESCRIPTION

Base class of code structure information.

Instance Method Summary collapse

Instance Method Details



37
38
39
# File 'lib/adlint/code.rb', line 37

def print_as_csv(io)
  io.puts(to_csv)
end

#to_sObject

DESCRIPTION

Converts this code structure information into string representation.

RETURN VALUE

String – String representation.



46
47
48
49
# File 'lib/adlint/code.rb', line 46

def to_s
  delim = ",".to_default_external
  to_a.map { |obj| obj.to_s.to_default_external }.join(delim)
end