Class: JavaExpectationsHook
- Inherits:
-
Mumukit::Templates::MulangExpectationsHook
- Object
- Mumukit::Templates::MulangExpectationsHook
- JavaExpectationsHook
- Defined in:
- lib/expectations_hook.rb
Instance Method Summary collapse
Instance Method Details
#compile_content(content) ⇒ Object
8 9 10 11 12 |
# File 'lib/expectations_hook.rb', line 8 def compile_content(content) return content unless content.is_a?(Hash) content.values.join("\n").gsub(/import .+/, '') end |
#default_smell_exceptions ⇒ Object
14 15 16 |
# File 'lib/expectations_hook.rb', line 14 def default_smell_exceptions LOGIC_SMELLS + FUNCTIONAL_SMELLS end |
#language ⇒ Object
4 5 6 |
# File 'lib/expectations_hook.rb', line 4 def language 'Java' end |