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
!!! | |
-# %TagName(html)で記述 | |
%html{:lang => "ja"} | |
%head | |
-# 「%TagName= @EmmbeddingName」で出力 | |
%title= @title | |
%body | |
-# 「%TagName #{@EmmbeddingName}で出力」 | |
%h1 #{@title} | |
%p= @text |
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
!!! | |
%html{:lang => "ja"} | |
%head | |
%title Request Print | |
%body | |
%p リクエストのHTTPメソッドと実行パス | |
%p | |
= "method = #{@request_method}" | |
= "url = #{@request_url}" |
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
# encoding: utf-8 | |
# File Name: sinatra_start.rb | |
# Create Day is 2015/05/20 | |
# Last Update Day is 2015/05/20 | |
# Gem List | |
gem 'tilt', '1.4.1' | |
# Require List | |
require 'sinatra' |
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
!!! | |
%html{:lang => "ja"} | |
%head | |
%title= @title | |
%meta{:content => "text/html", :"http-equiv" => "Content-Type", :charset => "utf-8"} | |
%body | |
%h1 #{@title} |
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
# encoding: utf-8 | |
# File Name: time.rb | |
# Create Day is 2015/05/22 | |
# Last Update Day is 2015/05/22 | |
puts "Timeクラス" | |
time = Time.now | |
puts time |
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
# encoding: utf-8 | |
# File Name: date.rb | |
# Create Day is 2015/05/22 | |
# Last Update Day is 2015/05/22 | |
# Require List | |
require 'date' | |
puts "Dateクラス" |
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
# encoding: utf-8 | |
# File Name: date_time.rb | |
# Create Day is 2015/05/22 | |
# Last Update Day is 2015/05/22 | |
# Require List | |
require 'date' | |
puts "DateTimeクラス" |
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
# encoding: utf-8 | |
# File Name: date_time.rb | |
# Create Day is 2015/05/22 | |
# Last Update Day is 2015/05/22 | |
# Require List | |
require 'time' | |
puts "Timeクラス" |
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
# encoding: utf-8 | |
# File Name: mongo_main.rb | |
# Create Day is 2015/05/25 | |
# Last Update Day is 2015/05/25 | |
# Require List | |
require 'mongo' | |
puts "MongoDB test!!" |
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
# encoding: utf-8 | |
# File Name: mongo_main02.rb | |
# Create Day is 2015/05/26 | |
# Last Update Day is 2015/05/26 | |
# Require List | |
require 'mongo' | |
puts "MongoDB test!!" |