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) ⇒ Object



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

def edit(*args)
end

.rewrite(*args) ⇒ Object



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

def rewrite(*args)
end

Instance Method Details

#configConfig

Returns:



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

abstract :config

#critiqueResultSet

Returns:



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

abstract :critique

#edit(id) ⇒ Object



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

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

#rewrite(id) ⇒ Object



20
21
22
23
24
# File 'lib/stupidedi/editor/abstract_ed.rb', line 20

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