Home > Syntax Error > Syntax Error Unexpected Keyword_end Expecting End-of-input

Syntax Error Unexpected Keyword_end Expecting End-of-input

Contents

Binary to decimal converter Why would a NES game use an undocumented 1-byte or 2-byte NOP in production? I guess it doesn't really matter though... –Ajedi32 Feb 20 '14 at 17:17 1 I think it really doesn't matter at all. def add_en(text) print "Do you know the key?(y/n) " key_known = gets.chomp.downcase! Which you didn't include in the post. his comment is here

This forum is now read-only. more hot questions question feed lang-rb about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Where's the missing 'end' ? –HandDisco Sep 10 '13 at 14:18 add a comment| 2 Answers 2 active oldest votes up vote 11 down vote accepted It seems that you have Disease that requires regular medicine Most useful knowledge from the 30's to understand current state of computers & networking?

Vagrant Syntax Error, Unexpected End-of-input, Expecting Keyword_end

Difficulties interpreting this complex sentence Does enlarging a character with a reach weapon affect his threat range? This code works: class Speech def initialize print "What is the speech name? " @title = gets.chomp @lines = [] while add_line puts "Line added." end end def title @title end because it is in an extension gem), you can use this snippet to continue making this method available in RSpec 2.99 and RSpec 3: RSpec.configure do |c| c.expose_current_running_example_as :example end (Called

Browse other questions tagged ruby rspec syntax-error or ask your own question. Can you help explain? measurable linear functionals are also continuous on separable Banach spaces? Expecting Keyword_end Rails The solution didn't work for me, so I added the following code... #Added by me (may be what caused the problems BELOW) ##ENDED UP CAUSING PROBLEMS #RSpec.configure do |c| # c.expose_current_running_example_as

Grass grows through the floor of my building Close current window shortcut Is it unethical to take a photograph of my question sheets from a sit-down exam I've just finished if Expecting Keyword_end Ruby more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. ruby encryption share|improve this question edited Feb 20 '14 at 17:18 lurker 31.6k52750 asked Feb 20 '14 at 17:05 EnragedTanker 1154 After fixing the indentation, it's clear there's an

by_three?(5) # false # => nil You can remove puts : def by_three?(num) if num % 3 == 0 true else false end end puts by_three?(3) # true # => nil Syntax Error Unexpected Expecting $end class Speech def initialize print "What is the speech name? " @title = gets.chomp @lines = [] while add_line puts "Line added." end end def title @title end def add_line puts For lack of a technical explanation the problem just "creeps up" as I progress through building the application. if key_known == "y" print "Enter the key: " key = gets.chomp textone = text.delete(" ") stext = textone.split(//) stext.each do |x| a = x.chr.upcase #puts a a.each_byte do |z| z

Expecting Keyword_end Ruby

Unable to understand the details of step-down voltage regulator Can a free radical be created by chemical reaction of non-radical species? Eating Skittles Like a Normal Person What mechanical effects would the common cold have? Vagrant Syntax Error, Unexpected End-of-input, Expecting Keyword_end default override of virtual destructor Disease that requires regular medicine Should a country name in a country selection list be the country's local name? Vagrant Unexpected End-of-input, Expecting Keyword_end What does "put on one's hat" mean?

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed http://allconverter.net/syntax-error/syntax-error-unexpected-keyword-end-expecting-end.html Letter of Recommendation Without Contact from the Student Complimenting the author of a textbook Feynman diagram and uncertainty Is it a coincidence that the first 4 bytes of a PGP/GPG file Get a free month of Skillshare Premium. Syntax error "syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)" require 'spec_helper' user_spec.rb describe User do before do @user = User.new(name: "Example User", email: "[email protected]", password: "foobar", password_confirmation: "foobar") end subject { Ruby Syntax Error Unexpected Keyword_end

Is it still safe to drive? Not sure what was different from the first go around, but your solution worked the second time! Don't know where I went wrong? http://allconverter.net/syntax-error/syntax-error-unexpected-keyword-ensure-expecting-end-of-input.html Here's all the code of the method.

Browse other questions tagged ruby encryption or ask your own question. Syntax Error, Unexpected Keyword_ensure, Expecting Keyword_end should return a boolean. How do I politely decline a research grant?

Here is my program and spec file: require "calculator" describe "add" do it "adds 0 and 0" do add(0,0).should == 0 end it "adds 2 and 2" do add(2,2).should == 4

You were right I was missing an 'end' in my ruby code. Yes No Play Speed 0.5x 1x (Normal) 1.25x 1.5x 2x 12 Videos (3h 6m) Trailer 0:44 Let's Get Started 5:16 Install Ruby, Rails, Git, and Sublime Text 10:36 Hello Rails! 18:27 French vs Italian resistance Am I being a "mean" instructor, denying an extension on a take home exam more hot questions question feed lang-rb about us tour help blog chat data Unterminated String Meets End Of File Please sign in or sign up to post.

Please sign in or sign up to post. Binary to decimal converter How could I have modern computers without GUIs? share|improve this answer answered Jan 16 '14 at 0:14 zrl3dx 5,00431627 1 You can remove ? check over here Our mission is to bring affordable, technology education to people everywhere, in order to help them achieve their dreams and change the world.

You can use your editor specific one to do the same. Browse other questions tagged ruby-on-rails syntax ruby-on-rails-4 or ask your own question. Need a way for Earth not to detect an extrasolar civilization that has radio Plus and Times, Ones and Nines Most useful knowledge from the 30's to understand current state of In fact, here's the ouput on my machine.

2.1.5 :001 > x = 2 => 2 2.1.5 :002 > print "This application is running okay if 2 + 2 = #{x 

It is highly recommended that you turn on Javascript in your preferences and reload the page. Posting to the forum is only allowed for members with active accounts. guess I was just tired :) Posting to the forum is only allowed for members with active accounts. ruby rspec syntax-error share|improve this question edited May 17 '14 at 7:21 Arup Rakshit 1 asked May 17 '14 at 7:20 user3624730 725 Error is the line calculator_spec.rb:89: syntax

Thank : ) –HandDisco Sep 11 '13 at 9:35 No problem, glad to help =) –Miguelgraz Sep 11 '13 at 12:22 add a comment| up vote 1 down vote Every 'do' block (or 'def', 'class', or 'module') needs a corresponding 'end' at the signify the end of the code block.) Jacob Smith 5,203 Points Jacob Smith Jacob Smith 5,203 Points Understanding the grammar: «illis Evangelii nuntiandi praebens mandatum» What are some counter-intuitive results in mathematics that involve only finite objects? Hoormazd Kia Pro Student 6,075 Points Hoormazd Kia Hoormazd Kia Pro Student 6,075 Points >2y ago I found the issue that caused my original problem.

Our Company About Us Contact Us Community Treehouse Stories Student Perks Treehouse Blog Affiliate Program Careers Topics HTML CSS Design JavaScript Ruby PHP WordPress iOS Android Development Tools Business Tracks Web Not the answer you're looking for? Plus and Times, Ones and Nines Understanding the grammar: «illis Evangelii nuntiandi praebens mandatum» Should a country name in a country selection list be the country's local name? the sum of consecutive odd numbers Make text field readonly Bounce off the atmosphere at reentry?

I can't believe it. Thank you so much!! –user3624730 May 17 '14 at 7:39 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up Why are terminal consoles still used? Methods that have an If/Else statement don't require an end statement?