Skip to content

Instantly share code, notes, and snippets.

h1 {
color: #2887e5; }
#footer {
font-family: Arial;
font-color: #2887e5; }
!font_family= Arial
!blue= #2887E5
h1
color= !blue
#footer
:font
:family= !font_family
:color= !blue
NIL_HASH = {
:datetime_start=>nil,
:datetime_end=>nil,
:run_start_time=>nil,
:run_end_time=>nil,
:result_comment=>nil,
:inprogress_state=>nil,
:inprogress_testcase=>nil,
:inprogress_lasterror=>nil
}
class ExampleController < ActiveRecord::Base
def index
end
def update
ExampleModle.create(:name => params[:name], :address => params[:address])
redirect_to :action => 'index'
end
end
delegate :author, :authored_date, :to => :@commit
def author
@commit.author
end
def committed_date
@commit.authored_date
end
def method_missing(method, *params)
super unless @commit.respond_to?(method)
@commit.send(method, *params)
end
def method_missing(method, *parameters)
raise NoMethodError unless @repo.respond_to?(method)
@repo.send(method, *parameters)
end
if ((start_day.to_i => book.start_boooking.day && start_day.to_i < book.end_booking.day) || (end_day.to_i > book.start_booking.day && end_day.to_i <= book.end_booking.day) || (start_day.to_i <= book.start_booking.day && end_day.to_i => book.end_booking.day)) && ((start_month.to_i => book.start_boooking.month && start_month.to_i < book.end_booking.month) || (end_month.to_i > book.start_booking.month && end_month.to_i <= book.end_booking.month) || (start_month.to_i <= book.start_booking.month && end_month.to_i => book.end_booking.month)) && ((start_year.to_i => book.start_boooking.year && start_year.to_i < book.end_booking.year) || (end_year.to_i > book.start_booking.year && end_year.to_i <= book.end_booking.year) || (start_year.to_i <= book.start_booking.year && end_year.to_i => book.end_booking.year))
class CreditCardInfo < ActiveRecord::Base
#modely stuff
end