Class: Command
- Inherits:
-
Object
- Object
- Command
- Defined in:
- lib/freshmind.rb
Instance Attribute Summary collapse
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
Instance Method Summary collapse
- #commands ⇒ Object
-
#initialize(lang = :en) ⇒ Command
constructor
A new instance of Command.
- #list ⇒ Object
Constructor Details
#initialize(lang = :en) ⇒ Command
Returns a new instance of Command.
6 7 8 |
# File 'lib/freshmind.rb', line 6 def initialize(lang=:en) @lang = lang end |
Instance Attribute Details
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
5 6 7 |
# File 'lib/freshmind.rb', line 5 def lang @lang end |
Instance Method Details
#commands ⇒ Object
14 15 16 17 |
# File 'lib/freshmind.rb', line 14 def commands return "оплопл" if lang == :ru return "brlbrl" if lang == :en end |
#list ⇒ Object
10 11 12 |
# File 'lib/freshmind.rb', line 10 def list (commands*100).split("").sample(300) end |