Class: BasePythonMetadataHook

Inherits:
Mumukit::Hook
  • Object
show all
Defined in:
lib/base/metadata_hook.rb

Direct Known Subclasses

Python2MetadataHook, Python3MetadataHook

Instance Method Summary collapse

Instance Method Details

#external_editor_instructionsObject



27
28
# File 'lib/base/metadata_hook.rb', line 27

def external_editor_instructions
end

#librariesObject



30
31
# File 'lib/base/metadata_hook.rb', line 30

def libraries
end

#metadataObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/base/metadata_hook.rb', line 2

def 
  {language: {
      name: 'python',
      icon: {type: 'devicon', name: 'python'},
      version: version,
      extension: 'py',
      ace_mode: 'python',
   },
   test_framework: {
       name: 'unittest',
       test_extension: 'py',
       template: <<python
class Test(unittest.TestCase):

def test_description_example(self):
  self.assertTrue(True)
python
   },
   libraries: libraries,
   external_editor_instructions: external_editor_instructions
  }.compact
end