module RuboCop::AST::BasicLiteralNode

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

Public Instance Methods

value() click to toggle source

Returns the value of the literal.

@return [mixed] the value of the literal

# File lib/rubocop/ast/node/mixin/basic_literal_node.rb, line 11
def value
  node_parts[0]
end