Class: Wordlist::Operators::UnaryOperator
- Defined in:
- lib/wordlist/operators/unary_operator.rb
Overview
Unary operator base class.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#wordlist ⇒ Enumerable
readonly
The wordlist to operate on.
Instance Method Summary collapse
-
#initialize(wordlist) ⇒ UnaryOperator
constructor
Initializes the unary operator.
Methods inherited from Operator
Constructor Details
#initialize(wordlist) ⇒ UnaryOperator
Initializes the unary operator.
24 25 26 |
# File 'lib/wordlist/operators/unary_operator.rb', line 24 def initialize(wordlist) @wordlist = wordlist end |
Instance Attribute Details
#wordlist ⇒ Enumerable (readonly)
The wordlist to operate on.
16 17 18 |
# File 'lib/wordlist/operators/unary_operator.rb', line 16 def wordlist @wordlist end |