code/Outputter.php
public function ask($question, $weight = "y") {
		$question = self::format($question);
		$y = $weight == 'y' ? 'Y' : 'y';
		$n = $weight == 'n' ? 'N' : 'n';
		$answer = $this->prompt("$question [$y/$n]");
		$line = trim(strtolower($answer));
		
		if(empty($line)) {
			$line = $weight;
		}

		return in_array($line, array('y','yes'));
	}
public function ask($question, $weight = "y") {
		$question = self::format($question);
		$y = $weight == 'y' ? 'Y' : 'y';
		$n = $weight == 'n' ? 'N' : 'n';
		$answer = $this->prompt("$question [$y/$n]");
		$line = trim(strtolower($answer));
		
		if(empty($line)) {
			$line = $weight;
		}

		return in_array($line, array('y','yes'));
	}
public function ask ( $ question , $ weight = "y" ) { $ question = self :: format ( $ question ) ; $ y = $ weight == 'y' ? 'Y' : 'y' ; $ n = $ weight == 'n' ? 'N' : 'n' ; $ answer = $ this -> prompt ( "$question [$y/$n]" ) ; $ line = trim ( strtolower ( $ answer ) ) ; if ( empty ( $ line ) ) { $ line = $ weight ; } return in_array ( $ line , array ( 'y' , 'yes' ) ) ; }
Asks the user a question. If a 'y' value is entered, returns true

@param  string $question
@param  string $weight   Either 'y' or 'n' can have the default value (on enter key)
@return boolean
Asks the user a question . If a y value is entered returns true