File: var_aref_variable.rb

package info (click to toggle)
ruby-ruby-lsp 0.26.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,676 kB
  • sloc: ruby: 35,294; javascript: 29; sh: 7; makefile: 4
file content (7 lines) | stat: -rw-r--r-- 263 bytes parent folder | download
1
2
3
4
5
6
7
def my_method
  a = :hello # local variable arefs should match
  @my_ivar = true # ivar arefs should not match
  $global_var = 1  # global arefs should not match
  @@class_var = "hello" # cvar refs should not match
end
Foo = 3.14 # constant refs should not match