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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="https://unpkg.com/[email protected]/dist/react.js"></script> | |
<script src="https://unpkg.com/[email protected]/dist/react-dom.js" | |
></script> | |
<script src="https://unpkg.com/[email protected]/dist/redux.js"></script> | |
<script src="https://unpkg.com/[email protected]/dist/react-redux.js" | |
></script> |
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
# State - allow an object to alter its behaviour when its internal state | |
# changes. The object will appear to change its class. | |
# Key idea - introduce an abstract class called SomethingState to represent the | |
# states of the object. Subclasses of the abstract class implement | |
# state-specific behaviour. | |
class Person | |
attr_accessor :state, :name |
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
# State - allow an object to alter its behaviour when its internal state | |
# changes. The object will appear to change its class. | |
# Key idea - introduce an abstract class called SomethingState to represent the | |
# states of the object. Subclasses of the abstract class implement | |
# state-specific behaviour. | |
class Person | |
attr_accessor :state, :name |
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
Ruby Twitter Gemの簡易リファレンス(というかメモ)です。内容はバージョン2.1.0に準拠しています。 | |
{{toc_here}} | |
! インストール | |
$ gem install twitter -v=2.1.0 | |
(環境によっては sudo gem ~) | |
! 概要 | |
* 公式サイト:https://github.com/jnunemaker/twitter |