Ruby Strings
symbol what it does + concatenate “a” “b” => -1 >> “a” “a” => 0 >> “b” “a” => 1…
Achieving Developer Excellence with Automated Testing
Ruby
symbol what it does + concatenate “a” “b” => -1 >> “a” “a” => 0 >> “b” “a” => 1…
1) Use the “system” method system “ls” 2) Or use backticks. Note that backticks support you returning to the results…
def is_a_number?(s) s.to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/) == nil? false : true end
operand what it does shift position of bits in Bignum and Fixnum ~ bitwise NOT (high-presendence) & bitwise AND (medium-presendence)…
Go to script/console to open ruby in interactive mode. script/console loads your environments (everything in environment.rb and all your plugin…
A method defined on a model that ends with = is an assignment method, so when ActiveRecord is trying to…
Some handy information about working with those less-than-percent sign things that appear in Emulated Ruby, or .rhtml files. example what…