Class: Clausewitz::Spelling::NullEntryResult
- Inherits:
-
Object
- Object
- Clausewitz::Spelling::NullEntryResult
- Defined in:
- lib/clausewitz/spelling/results.rb
Instance Method Summary collapse
- #failed? ⇒ Boolean
- #ignored? ⇒ Boolean
-
#initialize(key) ⇒ NullEntryResult
constructor
A new instance of NullEntryResult.
- #to_s ⇒ Object
- #to_str(indent = 0) ⇒ Object
Constructor Details
#initialize(key) ⇒ NullEntryResult
Returns a new instance of NullEntryResult.
153 154 155 |
# File 'lib/clausewitz/spelling/results.rb', line 153 def initialize(key) @key = key end |
Instance Method Details
#failed? ⇒ Boolean
161 162 163 |
# File 'lib/clausewitz/spelling/results.rb', line 161 def failed? true end |
#ignored? ⇒ Boolean
157 158 159 |
# File 'lib/clausewitz/spelling/results.rb', line 157 def ignored? false end |
#to_s ⇒ Object
165 166 167 |
# File 'lib/clausewitz/spelling/results.rb', line 165 def to_s to_str end |
#to_str(indent = 0) ⇒ Object
169 170 171 172 |
# File 'lib/clausewitz/spelling/results.rb', line 169 def to_str(indent = 0) spacer = ' ' * indent "#{spacer}#{@key} is missing!".red end |