Class: Clausewitz::Spelling::NullEntryResult

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

Instance Method Summary collapse

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

Returns:

  • (Boolean)


161
162
163
# File 'lib/clausewitz/spelling/results.rb', line 161

def failed?
  true
end

#ignored?Boolean

Returns:

  • (Boolean)


157
158
159
# File 'lib/clausewitz/spelling/results.rb', line 157

def ignored?
  false
end

#to_sObject



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