Class: Stupidedi::Editor::AbstractEd

Inherits:
Object
  • Object
show all
Includes:
Inspect
Defined in:
lib/stupidedi/editor/abstract_ed.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Inspect

#inspect

Class Method Details

.edit(*args)


30
31
# File 'lib/stupidedi/editor/abstract_ed.rb', line 30

def edit(*args)
end

.rewrite(*args)


33
34
# File 'lib/stupidedi/editor/abstract_ed.rb', line 33

def rewrite(*args)
end

Instance Method Details

#configConfig

Returns:


10
# File 'lib/stupidedi/editor/abstract_ed.rb', line 10

abstract :config

#critiqueResultSet

Returns:


13
# File 'lib/stupidedi/editor/abstract_ed.rb', line 13

abstract :critique

#edit(id)


15
16
17
18
19
20
# File 'lib/stupidedi/editor/abstract_ed.rb', line 15

def edit(id)
  if config.editor.enabled?(id)
  # puts "#{self.class.name.split("::").last}.edit(#{id})"
    yield
  end
end

#rewrite(id)


22
23
24
25
26
# File 'lib/stupidedi/editor/abstract_ed.rb', line 22

def rewrite(id)
  if config.editor.enabled?(id)
    yield
  end
end