NOTE: This is outdated. Check the comments below for more up-to-date forks of this gist.
Improved YARD CHEATSHEET http://yardoc.org
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
NOTE: This is outdated. Check the comments below for more up-to-date forks of this gist.
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
#Ultimate solution for this:
#http://askubuntu.com/questions/289858/disk-drive-for-dev-mapper-cryptswap-1-is-not-ready
Run the following command:
sudo gedit /etc/fstab
class Mage < Player | |
def initialize(*args) | |
super(*args) | |
@str, @int, @dex = 1, 6, 2 | |
end | |
def level_up | |
@str += 1 | |
@int += 6 | |
@dex += 2 |
# Call scopes directly from your URL params: | |
# | |
# @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
module Filterable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Call the class methods with names based on the keys in <tt>filtering_params</tt> | |
# with their associated values. For example, "{ status: 'delayed' }" would call |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.