Permalink
Browse files

removing Definition#instance_variable_name, nobody needs it.

  • Loading branch information...
1 parent ee67515 commit 2797adfe23f63ef56ac47467fdc534381f12d71a @apotonick apotonick committed Jan 19, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −4 lib/representable/definition.rb
  2. +0 −4 test/definition_test.rb
View
4 lib/representable/definition.rb
@@ -15,10 +15,6 @@ def initialize(sym, options={})
@attribute = options[:attribute]
end
- def instance_variable_name
- :"@#{name}"
- end
-
def setter
:"#{name}="
end
View
4 test/definition_test.rb
@@ -35,10 +35,6 @@ class DefinitionTest < MiniTest::Spec
assert_equal "songs", @def.name
end
- it "responds to #instance_variable_name" do
- assert_equal :"@songs", @def.instance_variable_name
- end
-
it "responds to #setter" do
assert_equal :"songs=", @def.setter
end

0 comments on commit 2797adf

Please sign in to comment.