Legend:
- ✏️ method changes
this. - 🔒 method does not change
this.
Array<T>.prototype.*:
concat(...items: Array): T[]🔒 ES3
This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
| class StarWrapper | |
| def initialize(stream) | |
| @stream = stream | |
| end | |
| def puts(string) | |
| print_header_line string | |
| @stream.print "* " | |
| @stream.print string | |
| @stream.puts " *" |
| set :application, "sprai" | |
| # RVM integration | |
| # http://beginrescueend.com/integration/capistrano/ | |
| $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
| require "rvm/capistrano" | |
| set :rvm_ruby_string, "1.9.2-p290" | |
| set :rvm_type, :user | |
| # Bundler integration (bundle install) |
| # app/models/my_model.rb | |
| module MyApp | |
| module Model | |
| def self.included(base) | |
| base.send :include, Mongoid::Document | |
| base.send :include, Mongoid::Timestamps | |
| base.send :include, ActiveAdmin::Mongoid::Patches | |
| end | |
| end |
| source :rubygems | |
| gem 'sinatra', '~> 1.3.3' | |
| gem 'json', '~> 1.7.5' | |
| gem 'restforce', '~> 1.0.5' | |
| gem 'thin', '~> 1.5.0' | |
| group :development do | |
| gem 'shotgun', '~> 0.9' | |
| gem 'tunnels', '~> 1.2.2' |
| require "bundler/capistrano" | |
| server "96.126.100.112", :web, :app, :db, primary: true | |
| set :application, "capteste" | |
| set :user, "deployer" | |
| set :deploy_to, "/home/#{user}/apps/#{application}" | |
| set :deploy_via, :remote_cache | |
| set :use_sudo, false | |
| set :port, "3030" |