Module: RailsAssist::Artifact::Marker

Included in:
CRUD::Create
Defined in:
lib/rails_artifactor/artifact/markers.rb

Instance Method Summary collapse

Instance Method Details

#marker(name, type, options = nil) ⇒ Object



3
4
5
6
7
# File 'lib/rails_artifactor/artifact/markers.rb', line 3

def marker name, type, options=nil
  method = "#{type}_marker"
  raise "No such marker method in this context: #{self}, ##{method}" if !respond_to? method
  send method, name, options
end