This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Performs a binary search on the host array. This method can either be | |
| * injected into Array.prototype or called with a specified scope like this: | |
| * binaryIndexOf.call(someArray, searchElement); | |
| * | |
| * @param {*} searchElement The item to search for within the array. | |
| * @return {Number} The index of the element which defaults to -1 when not found. | |
| */ | |
| function binaryIndexOf(searchElement) { | |
| 'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Babby < PragnentGirl::GetPragnent | |
| attr_accessible :name, :mother, :location, :pragnent_girl_id | |
| belongs_to :pragnent_girl | |
| before_save :destroy_instain_mothers | |
| after_save :pary_for_father | |
| #How is babby formed? |
NewerOlder