Method: YARD::Parser::Ruby::AstNode#inspect

Defined in:
lib/yard/parser/ruby/ast_node.rb

#inspectString

Returns inspects the object.

Returns:

  • (String)

    inspects the object

[View source]

322
323
324
325
# File 'lib/yard/parser/ruby/ast_node.rb', line 322

def inspect
  typeinfo = type && type != :list ? ':' + type.to_s + ', ' : ''
  's(' + typeinfo + map(&:inspect).join(", ") + ')'
end