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

Version Path
hippo-fw-0.9.9 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.8 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.7 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.6 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.5 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.4 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.3 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.2 yard_ext/locked_fields_handler.rb
hippo-fw-0.9.1 yard_ext/locked_fields_handler.rb
lanes-0.8.3 yard_ext/locked_fields_handler.rb
lanes-0.8.2 yard_ext/locked_fields_handler.rb
lanes-0.8.1 yard_ext/locked_fields_handler.rb
lanes-0.8.0 yard_ext/locked_fields_handler.rb
lanes-0.7.0 yard_ext/locked_fields_handler.rb
lanes-0.6.1 yard_ext/locked_fields_handler.rb
lanes-0.6.0 yard_ext/locked_fields_handler.rb
lanes-0.5.6 yard_ext/locked_fields_handler.rb
lanes-0.5.5 yard_ext/locked_fields_handler.rb
lanes-0.5.0 yard_ext/locked_fields_handler.rb
lanes-0.4.0 yard_ext/locked_fields_handler.rb