Sha256: 63de2527e9aba9b611d2a121a3ce392fa358331bf7375732acf88313db48120d

Contents?: true

Size: 768 Bytes

Versions: 35

Compression:

Stored size: 768 Bytes

Contents

class CodeIdentifierHandler < SkrMetaMethodHandler

    namespace_only
    handles method_call(:has_code_identifier)

    def process
        super
        add_to_overview


        params = statement.parameters
        if params.size > 1
            params.pop
            params.detect{ | param |
                param.jump(:hash).source =~ /(:from\s*=>|from:)\s*["':]([^\W]+)/
            }
            namespace.docstring += "\n\nIf left blank, the {#code} field will be set by sending the {##{$2}} field through {Skr::Core::Strings.code_identifier}"
        end

    end

    def concern_path
        "Skr::Concerns::CodeIdentifier"
    end

    def method_name
        :has_code_identifier
    end

    def method_title
        'Has Code Identifier'
    end
end

Version data entries

35 entries across 35 versions & 3 rubygems

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