Skip to content

Commit

Permalink
changed name of instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankinderman committed Apr 21, 2007
1 parent 0be63e1 commit 4333d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metakoans-ryan/knowledge_for_koan_1_assert_4.rb
@@ -1,6 +1,6 @@
class Class
def attribute(name)
attr_var = "@#{name}_attr"
attr_var = "@#{name}"

define_method(name + "?") do
!instance_variable_get(attr_var).nil?
Expand Down

0 comments on commit 4333d9c

Please sign in to comment.