lib/coder_wally/account.rb in coder_wally-0.1.0 vs lib/coder_wally/account.rb in coder_wally-0.1.1
- old
+ new
@@ -3,11 +3,11 @@
# Stores the users accounts
class Account
# Dynamically create account properties
def initialize(collection_of_accounts)
collection_of_accounts.each do |account, value|
- singleton_class.class_eval do; attr_accessor "#{account}"; end
- self.instance_variable_set("@#{account}", value)
+ singleton_class.class_eval { attr_accessor "#{account}" }
+ instance_variable_set("@#{account}", value)
end
end
end
-end
\ No newline at end of file
+end