# Copyright 2020 Eficode Oy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import kw_documentation
from robot.libdoc import libdoc
from CBAMLibrary import CBAMLibrary

def add_documentation(cls, documentation):
    """Utility method for separating Robot documentation from keyword implementation."""
    cls.__doc__ = documentation.CBAMLibrary
    methods = list(filter(lambda x: not x.startswith("_"), dir(cls)))
    for method_name in methods:
        method = getattr(cls, method_name)
        if callable(method):
            name = method.__name__
            if hasattr(documentation, name):
                getattr(cls, name).__doc__ = getattr(documentation, name)

add_documentation(CBAMLibrary, kw_documentation)
libdoc("CBAMLibrary.py", "documentation.html")

cd2e494e7634405dc6867eef3da97ffeee26e4d9
<mask token>

<mask token>


def add_documentation(cls, documentation):
    """Utility method for separating Robot documentation from keyword implementation."""
    cls.__doc__ = documentation.CBAMLibrary
    methods = list(filter(lambda x: not x.startswith('_'), dir(cls)))
    for method_name in methods:
        method = getattr(cls, method_name)
        if callable(method):
            name = method.__name__
            if hasattr(documentation, name):
                getattr(cls, name).__doc__ = getattr(documentation, name)


<mask token>

<mask token>


def add_documentation(cls, documentation):
    """Utility method for separating Robot documentation from keyword implementation."""
    cls.__doc__ = documentation.CBAMLibrary
    methods = list(filter(lambda x: not x.startswith('_'), dir(cls)))
    for method_name in methods:
        method = getattr(cls, method_name)
        if callable(method):
            name = method.__name__
            if hasattr(documentation, name):
                getattr(cls, name).__doc__ = getattr(documentation, name)


add_documentation(CBAMLibrary, kw_documentation)
libdoc('CBAMLibrary.py', 'documentation.html')

import kw_documentation
from robot.libdoc import libdoc
from CBAMLibrary import CBAMLibrary


def add_documentation(cls, documentation):
    """Utility method for separating Robot documentation from keyword implementation."""
    cls.__doc__ = documentation.CBAMLibrary
    methods = list(filter(lambda x: not x.startswith('_'), dir(cls)))
    for method_name in methods:
        method = getattr(cls, method_name)
        if callable(method):
            name = method.__name__
            if hasattr(documentation, name):
                getattr(cls, name).__doc__ = getattr(documentation, name)


add_documentation(CBAMLibrary, kw_documentation)
libdoc('CBAMLibrary.py', 'documentation.html')

# Copyright 2020 Eficode Oy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import kw_documentation
from robot.libdoc import libdoc
from CBAMLibrary import CBAMLibrary

def add_documentation(cls, documentation):
    """Utility method for separating Robot documentation from keyword implementation."""
    cls.__doc__ = documentation.CBAMLibrary
    methods = list(filter(lambda x: not x.startswith("_"), dir(cls)))
    for method_name in methods:
        method = getattr(cls, method_name)
        if callable(method):
            name = method.__name__
            if hasattr(documentation, name):
                getattr(cls, name).__doc__ = getattr(documentation, name)

add_documentation(CBAMLibrary, kw_documentation)
libdoc("CBAMLibrary.py", "documentation.html")
