Created
February 11, 2016 05:20
-
-
Save anonymous/74b77a1c17d387f1d32b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class myobj | |
attr_accessor :test | |
def initialize | |
@ar_obj = AR::Object | |
end | |
def inc( col_var, amount=1 ) | |
@ar_obj.send "#{col_var.to_s}+=", amount | |
end | |
end | |
obj = myobj.new | |
obj.inc( :processed_count, 1 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment