lib/zenlish/wclasses/irregular_verb_can.rb in zenlish-0.2.05 vs lib/zenlish/wclasses/irregular_verb_can.rb in zenlish-0.2.06

- old
+ new

@@ -1,24 +1,24 @@ +# frozen_string_literal: true + require_relative 'irregular_verb' module Zenlish module WClasses # Irregular verb can class IrregularVerbCan < IrregularVerb - def initialize - super() - end + # rubocop: disable Layout/SpaceInsideArrayLiteralBrackets private def init_feature_defs super # Create standard feature definitions for modal verb can. - feature_def_dsl { + feature_def_dsl do feature_def 'TIME' => enumeration(:present, :past_simple) feature_def 'PARADIGM' => [identifier, 'Verb_can_inflection'] # 2nd item is default value - } + end end def init_paradigms builder = Inflect::InflectionTableBuilder.new table = builder.build('Verb_can_inflection') do @@ -26,9 +26,10 @@ # TIME rule([equals(:present) ], literal('can')) rule([equals(:past_simple) ], literal('could')) end add_paradigm(table) - end + end + # rubocop: enable Layout/SpaceInsideArrayLiteralBrackets end # class end # module -end # module \ No newline at end of file +end # module