by shigemk2

当面は技術的なことしか書かない

はてダでgistコードを貼りつけるテスト

敗北したエントリー
throwsについて - by shigemk2
参考にしたCSS
css, gist embed
参考にしたruby
gistの貼付タグのScriptの内容取得してHTMLにする。 - それマグで!

https://gist.github.com/stylesheets/gist/embed.css がもう存在しないらしいので、
代わりとなるcssを上から拝借しました。ありがとうございます。








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

<?php
/**
* このメソッドは適当に作りました
*
* @param[in] $hoge
* @return 対応する配列
* @throws Exception 対応するデータがない場合
*/
public function hoge($hoge = '') {
if(! isset($array[$hoge])) {
throw new Exception('データがありません。');
}
return $array[$hoge];
}


view raw
throws.php
This Gist brought to you by GitHub.

表示がムチャクチャじゃねーか。ちょっと出直してくる