class Yardstick::Rules::ExampleTag


This applies only for public methods
Checks if method has @example tag

def valid?

Other tags:
    Api: - private

Returns:
  • (Boolean) -

Other tags:
    See: class - description
def valid?
  has_tag?('example')
end

def validatable?

Other tags:
    Api: - private

Returns:
  • (Boolean) -

Other tags:
    See: class - description
def validatable?
  !api?(%w[ private ]) && tag_types('return') != %w[ undefined ]
end