123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::AST::BasicLiteralNode

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rubocop/ast/node/mixin/basic_literal_node.rb

Overview

Common functionality for primitive literal nodes: sym, str, int, float, rational…​

Instance Method Summary

Instance Method Details

#valuemixed

Returns the value of the literal.

Returns:

  • (mixed)

    the value of the literal

[ GitHub ]

  
# File 'lib/rubocop/ast/node/mixin/basic_literal_node.rb', line 11

def value
  node_parts[0]
end