Beginning Ruby with Markdown and more

088b1b43ff5dd64aa0f000da9e9da777?s=47 wtnabe
August 18, 2012

Beginning Ruby with Markdown and more

テキストフォーマッタで始めるRubyとGemの基礎 2012-08-18(Sat) kanazawa.rb meetup #1

088b1b43ff5dd64aa0f000da9e9da777?s=128

wtnabe

August 18, 2012
Tweet

Transcript

  1. 2.

    お品書き Markdown の紹介 Ruby / Rubygems / GitHub and more

    Rubyの動かし⽅ / リファレンス ライブラリを使おう Markdown の変換
  2. 6.

    ⾒出し ====== 1. Ordered List * Unordered List - Unordered

    List よく bullet list と呼ぶ。- でも * でもよい 階層はインデントで表現
  3. 13.

    Gem パッケージそのもの ex) rails gem, nokogiri gem パッケージ管理コマンド gem -v

    ※ Ruby 1.9から標準なのでインストール⽅法などは割愛
  4. 22.

    ヘルプを⾒る $ ruby --help Usage: ruby [switches] [--] [programfile] [arg

    -0[octal] specify record separator (\0 -a autosplit mode with -n or -p -c check syntax only -Cdirectory cd to directory, before exec -d set debugging flags (set $DE -e 'command' one line of script. Several ....
  5. 23.

    よく使うオプションを抜粋 -c check syntax only -d set debugging flags (set

    $DEBUG to true) -e 'command' one line of script. Several -e's allowed. Omit [programfile] -rlibrary require the library, before executing your script
  6. 34.

    ri $ ri Array.include\? = Array.include? (from ruby site) -----------------------------------------

    ary.include?(obj) -> true or false --------------------------------------- Returns true if the given object is present in self (that is, if any object == anObject), false otherwise. ...
  7. 37.
  8. 50.
  9. 53.

    #! /usr/bin/env ruby # -*- coding: utf-8 -*- require "redcarpet"

    puts Redcarpet::Markdown. new(Redcarpet::Render::HTML). render(<<EOD) ここに ====== * markdownの⽂法で * テキストを書くことができます EOD
  10. 56.
  11. 57.
  12. 61.

    リファレンス yard-doc-core gem YARD - A Ruby Documentation Tool pry-doc

    gem Pry - an IRB alternative and runtime developer console
  13. 69.

    Resources Rails Hub - @IT Ruby on Rails Screencasts -

    RailsCasts ASCIIcasts - Recent Episodes