Class: Clausewitz::Spelling::IgnoredLangResult
- Inherits:
-
Object
- Object
- Clausewitz::Spelling::IgnoredLangResult
- Defined in:
- lib/clausewitz/spelling/results.rb
Instance Method Summary collapse
- #failed? ⇒ Boolean
- #failures ⇒ Object
- #ignored ⇒ Object
- #ignored? ⇒ Boolean
-
#initialize(lang) ⇒ IgnoredLangResult
constructor
A new instance of IgnoredLangResult.
- #size ⇒ Object
- #to_s ⇒ Object
- #to_str(indent = 0) ⇒ Object
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
100 101 102 |
# File 'lib/clausewitz/spelling/results.rb', line 100 def failed? false end |
#failures ⇒ Object
104 105 106 |
# File 'lib/clausewitz/spelling/results.rb', line 104 def failures [] end |
#ignored ⇒ Object
96 97 98 |
# File 'lib/clausewitz/spelling/results.rb', line 96 def ignored [] end |
#ignored? ⇒ Boolean
92 93 94 |
# File 'lib/clausewitz/spelling/results.rb', line 92 def ignored? true end |
#size ⇒ Object
108 109 110 |
# File 'lib/clausewitz/spelling/results.rb', line 108 def size 0 end |
#to_s ⇒ Object
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 |