Skip to content

Instantly share code, notes, and snippets.

Created April 14, 2016 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/18f28522e15fd3c23b82bac729b01d41 to your computer and use it in GitHub Desktop.
Save anonymous/18f28522e15fd3c23b82bac729b01d41 to your computer and use it in GitHub Desktop.
@lastSubCategory = $subCategoryList.last
puts ("@lastSubCategory: #{@lastSubCategory}")
@lastSubCategory = $subCategoryList[0]
puts ("@lastSubCategory: #{@lastSubCategory}")
puts ("$subCategoryList.last: #{$subCategoryList.last}")
@lastSubCategory = 'text'
puts ("@lastSubCategory: #{@lastSubCategory}")
>>>>output
@lastSubCategory: ["text"]
@lastSubCategory: ["text"]
$subCategoryList.last: ["text"]
@lastSubCategory: text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment