Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poem.delete doesn't work #148

Open
avjgit opened this issue Jun 22, 2011 · 5 comments
Open

poem.delete doesn't work #148

avjgit opened this issue Jun 22, 2011 · 5 comments

Comments

@avjgit
Copy link

avjgit commented Jun 22, 2011

gives out error "ArgumentError: wrong number of arguments (at least 1) "

@davidmiani
Copy link
Contributor

poem is a String, and the delete method on String requires one argument. Eg poem.delete "aeiou" will return a string containing the contents of poem but with all the vowels deleted.

So this is correct behaviour.

@ghost
Copy link

ghost commented Jul 8, 2011

okay, but the instructions in the tutorial just say: try poem.delete they do not say: try poem.delete "aeiou"

@tedkspradley
Copy link

hmmm... I agree that the behavior should be to delete all of the vowels according to the string methods documentation, however, my experience is this:

poem.delete "aeiou"
ArgumentError: wrong number of arguments (at least 1)

@tedkspradley
Copy link

it may be related to something else, b/c the next command in the tutorial is to create an empty hash called 'books', but I get the same ArgumentError

books ={}
ArgumentError: wrong number of arguments (at least 1)

@tedkspradley
Copy link

It appears that the string (or whatever data structure) called poem no longer exists for me in the tutorial.

print poem
ArgumentError: wrong number of arguments (at least 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants