Class: Clausewitz::Spelling::IgnoredEntryResult
- Inherits:
-
Object
- Object
- Clausewitz::Spelling::IgnoredEntryResult
- Defined in:
- lib/clausewitz/spelling/results.rb
Instance Method Summary collapse
- #failed? ⇒ Boolean
- #ignored? ⇒ Boolean
-
#initialize(key) ⇒ IgnoredEntryResult
constructor
A new instance of IgnoredEntryResult.
- #to_s ⇒ Object
- #to_str(indent = 0) ⇒ Object
Constructor Details
#initialize(key) ⇒ IgnoredEntryResult
Returns a new instance of IgnoredEntryResult.
176 177 178 |
# File 'lib/clausewitz/spelling/results.rb', line 176 def initialize(key) @key = key end |
Instance Method Details
#failed? ⇒ Boolean
184 185 186 |
# File 'lib/clausewitz/spelling/results.rb', line 184 def failed? false end |
#ignored? ⇒ Boolean
180 181 182 |
# File 'lib/clausewitz/spelling/results.rb', line 180 def ignored? true end |
#to_s ⇒ Object
188 189 190 |
# File 'lib/clausewitz/spelling/results.rb', line 188 def to_s to_str end |
#to_str(indent = 0) ⇒ Object
192 193 194 195 |
# File 'lib/clausewitz/spelling/results.rb', line 192 def to_str(indent = 0) firstspacer = ' ' * indent "#{firstspacer}#{@key} ignored".yellow end |