Module: Twterm::History::Base
- Included in:
- Savable, ScreenName
- Defined in:
- lib/twterm/history/base.rb
Instance Attribute Summary collapse
-
#history ⇒ Object
readonly
Returns the value of attribute history.
Instance Method Summary collapse
Instance Attribute Details
#history ⇒ Object (readonly)
Returns the value of attribute history.
4 5 6 |
# File 'lib/twterm/history/base.rb', line 4 def history @history end |
Instance Method Details
#add(item) ⇒ Object
10 11 12 |
# File 'lib/twterm/history/base.rb', line 10 def add(item) @history << item end |
#initialize ⇒ Object
6 7 8 |
# File 'lib/twterm/history/base.rb', line 6 def initialize @history = [] end |