Class: LongTweet::Arranger
- Inherits:
-
Object
- Object
- LongTweet::Arranger
- Defined in:
- lib/long_tweet/arranger.rb
Instance Attribute Summary collapse
-
#tweets ⇒ Object
readonly
Returns the value of attribute tweets.
Instance Method Summary collapse
-
#initialize(tweets) ⇒ Arranger
constructor
A new instance of Arranger.
- #order ⇒ Object
Constructor Details
#initialize(tweets) ⇒ Arranger
Returns a new instance of Arranger.
4 5 6 |
# File 'lib/long_tweet/arranger.rb', line 4 def initialize tweets @tweets = tweets end |
Instance Attribute Details
#tweets ⇒ Object (readonly)
Returns the value of attribute tweets.
3 4 5 |
# File 'lib/long_tweet/arranger.rb', line 3 def tweets @tweets end |
Instance Method Details
#order ⇒ Object
8 9 10 |
# File 'lib/long_tweet/arranger.rb', line 8 def order tweets.reverse end |