Ruby Shoes“file.rb:18:语法错误,意外'\ n',期待tASSOC”

时间:2014-04-02 18:17:20

标签: ruby syntax shoes

我已经搜索了一个解决方案,但不能很好地理解答案,以便将它们应用到我的应用程序中。这是代码:

require "soundcloud"
require "open-url"
require 'taglib'

client = SoundCloud.new({
    :client_id     => 'MyClientID',
    :client_secret => 'MyCLientSecret',
    Shoes.app{
        para "Input username"
        @username = edit_line
        para "Input password"
        @password = edit_line
        @but = button "OK"
        @but.click({
            :username => @username.text,
            :password => @password.text
        })
    }
})

0 个答案:

没有答案