Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created July 31, 2012 02:38
Show Gist options
  • Save wtnabe/3212979 to your computer and use it in GitHub Desktop.
Save wtnabe/3212979 to your computer and use it in GitHub Desktop.
kanazawarb meetup #1 beginning ruby and text formatter

とりあえず押さえておいてほしい単語

本体と周辺知識

  • rubyコマンド
  • バージョン 1.8/1.9
  • ライブラリ
  • require
  • rubygems
    • パッケージシステム
    • パッケージホスティングサイト rubygems.org
  • gem
    • パッケージ
    • パッケージ管理コマンド
    • 1.9 から標準だし、インストール方法は割愛
  • github
    • rubyの便利なものはだいたいここにある
  • git
    • github を使うときのコマンド

※ bundler は割愛

コード

とりあえず使い方。細かい文法は一切抜き。

  • require
  • class ( Time をサンプルに )
  • インスタンスの作り方、使い方

テキストフォーマッタ

  • Markdown
  • Textile

の2つとこれらを扱うライブラリを紹介。

  • gemでインストール
  • コマンド叩いてリダイレクトしてHTML生成
  • ライブラリとして使って定型文の中へ変換結果を埋め込む

以上。くらいかな。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment