Class: Clausewitz::Spelling::IgnoredEntryResult

Inherits:
Object
  • Object
show all
Defined in:
lib/clausewitz/spelling/results.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


184
185
186
# File 'lib/clausewitz/spelling/results.rb', line 184

def failed?
  false
end

#ignored?Boolean

Returns:

  • (Boolean)


180
181
182
# File 'lib/clausewitz/spelling/results.rb', line 180

def ignored?
  true
end

#to_sObject



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