Class: Zomba::Spitter
- Inherits:
-
Object
- Object
- Zomba::Spitter
- Defined in:
- lib/zomba/spitter.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Spitter
constructor
A new instance of Spitter.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Spitter
Returns a new instance of Spitter.
5 6 7 |
# File 'lib/zomba/spitter.rb', line 5 def initialize @spit = Zomba::Core.new.read_file.sample(1).first end |
Class Method Details
.spit ⇒ Object
12 13 14 |
# File 'lib/zomba/spitter.rb', line 12 def self.spit return Spitter.new.to_s end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/zomba/spitter.rb', line 8 def to_s return @spit end |