Class: Clausewitz::Spelling::IgnoredLangResult

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

Instance Method Summary collapse

Constructor Details

#initialize(lang) ⇒ IgnoredLangResult

Returns a new instance of IgnoredLangResult.



88
89
90
# File 'lib/clausewitz/spelling/results.rb', line 88

def initialize(lang)
  @lang = lang
end

Instance Method Details

#failed?Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/clausewitz/spelling/results.rb', line 100

def failed?
  false
end

#failuresObject



104
105
106
# File 'lib/clausewitz/spelling/results.rb', line 104

def failures
  []
end

#ignoredObject



96
97
98
# File 'lib/clausewitz/spelling/results.rb', line 96

def ignored
  []
end

#ignored?Boolean

Returns:

  • (Boolean)


92
93
94
# File 'lib/clausewitz/spelling/results.rb', line 92

def ignored?
  true
end

#sizeObject



108
109
110
# File 'lib/clausewitz/spelling/results.rb', line 108

def size
  0
end

#to_sObject



112
113
114
# File 'lib/clausewitz/spelling/results.rb', line 112

def to_s
  to_str
end

#to_str(indent = 0) ⇒ Object



116
117
118
119
# File 'lib/clausewitz/spelling/results.rb', line 116

def to_str(indent = 0)
  firstspacer = ' ' * indent
  "#{firstspacer}#{@lang} ignored".yellow
end