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



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

def edit(*args)
end

.rewrite(*args) ⇒ Object



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

def rewrite(*args)
end

Instance Method Details

#configConfig

Returns:



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

abstract :config

#critiqueResultSet

Returns:



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

abstract :critique

#edit(id) ⇒ Object



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

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

#rewrite(id) ⇒ Object



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

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