Module: Mosquito
- Defined in:
- lib/mosquito.rb
Defined Under Namespace
Modules: Proboscis Classes: MockRequest, MockUpload, NonLocalRequest, SageAdvice
Constant Summary collapse
- VERSION =
'0.1.3'
Class Method Summary collapse
-
.garbage(amount) ⇒ Object
For various methods that need to generate random text.
-
.stash(something) ⇒ Object
:nodoc:.
-
.unstash ⇒ Object
:nodoc:.
Class Method Details
.garbage(amount) ⇒ Object
For various methods that need to generate random text
17 18 19 20 21 22 23 24 |
# File 'lib/mosquito.rb', line 17 def self.garbage(amount) #:nodoc: fills = ("a".."z").to_a str = (0...amount).map do v = fills[rand(fills.length)] (rand(2).zero? ? v.upcase : v) end str.join end |
.stash(something) ⇒ Object
:nodoc:
34 35 36 |
# File 'lib/mosquito.rb', line 34 def self.stash(something) #:nodoc: @stashed = something end |
.unstash ⇒ Object
:nodoc:
38 39 40 |
# File 'lib/mosquito.rb', line 38 def self.unstash #:nodoc: x, @stashed = @stashed, nil; x end |