Sha256: d67b1a94dc8add2e27f38e8ca45ba93db2a0b86cf01533f35af297a8f0691613
Contents?: true
Size: 616 Bytes
Versions: 35
Compression:
Stored size: 616 Bytes
Contents
class LockedFieldsHandler < SkrMetaMethodHandler namespace_only handles method_call(:locked_fields) def process super params = statement.parameters params.pop params.map! { |p| p.source.gsub(/\s*:/,'') } namespace.docstring += "\n\n" + "## Locked Fields {Skr::Concerns::LockedFields::ClassMethods >>}\n\n" + "The following fields are locked:<ul>" params.each do | field | namespace.docstring += "<li>#{field}</li>" end namespace.docstring += "</ul>" end end
Version data entries
35 entries across 35 versions & 3 rubygems