Class: SourceNameEvaluator

Inherits:
Object show all
Defined in:
lib/source_name_evaluator.rb

Instance Method Summary collapse

Instance Method Details

#source_name_arg(node) ⇒ Object



3
4
5
# File 'lib/source_name_evaluator.rb', line 3

def source_name_arg(node)
  node.name
end

#source_name_const(node) ⇒ Object



7
8
9
# File 'lib/source_name_evaluator.rb', line 7

def source_name_const(node)
  node.identifier.to_s
end

#source_name_variable(node) ⇒ Object



11
12
13
# File 'lib/source_name_evaluator.rb', line 11

def source_name_variable(node)
  node.token.to_s
end