This file contains 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
# 今回の例では人間を使います。 | |
class Human | |
def initialize(name) | |
@name = name | |
end | |
end | |
# 人間は別名をいろいろ持っているのでこちらのmoduleでそれを設定できるようにしようと思います。 | |
module OtherNames |
This file contains 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
# java -version | |
java version "1.8.0_11" | |
Java(TM) SE Runtime Environment (build 1.8.0_11-b12) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode) |
This file contains 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
package kis.basicdb; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.HashMap; |
This file contains 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
<%= form_with(model: book, local: true) do |form| %> | |
<% if book.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(book.errors.count, "error") %> prohibited this book from being saved:</h2> | |
<ul> | |
<% book.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Railbook</title> | |
<meta name="csrf-param" content="authenticity_token" /> | |
<meta name="csrf-token" content="V3hZRTW6hrSRYpLxljkmez3wTLBkEC557ctQxzW9HbXlYYkha9q23BSAVhg044ceIqj4Myzy1OjyLrsJzEeELg==" /> | |
<link rel="stylesheet" media="all" href="/assets/books.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" data-turbolinks-track="reload" /> | |
<link rel="stylesheet" media="all" href="/assets/hello.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" data-turbolinks-track="reload" /> | |
<link rel="stylesheet" media="all" href="/assets/scaffolds.self-1555610a9e3ccb9e4c026f4302a72186e1de287dc8a6e0178211e64e26454c46.css?body=1" data-turbolinks-track="reload" /> |
This file contains 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
<p id="notice"><%= notice %></p> | |
<h1>Books</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Isbn</th> | |
<th>Title</th> | |
<th>Price</th> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Railbook</title> | |
<meta name="csrf-param" content="authenticity_token" /> | |
<meta name="csrf-token" content="I4D9+zuAnv3HT7VzY//SCsEzcnPU1z4vNbIeXlpQMBuRmS2fZeCulUKtcZrBJXNv3mvG8Jw1xL4qV/WQo6qpgA==" /> | |
<link rel="stylesheet" media="all" href="/assets/hello.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css?body=1" data-turbolinks-track="reload" /> | |
<link rel="stylesheet" media="all" href="/assets/application.self-f0d704deea029cf000697e2c0181ec173a1b474645466ed843eb5ee7bb215794.css?body=1" data-turbolinks-track="reload" /> | |
<script src="/assets/rails-ujs.self-8944eaf3f9a2615ce7c830a810ed630e296633063af8bb7441d5702fbe3ea597.js?body=1" data-turbolinks-track="reload"></script> |