module YARD::Handlers::Ruby::StructHandlerMethods
def create_member_method?(klass, member, type = :read)
-
(Boolean)
- should the attribute be created?
Parameters:
-
type
(Symbol
) -- (:read) reader method, or writer method? -
member
(String
) -- the name of the struct member we need -
klass
(ClassObject
) -- the class whose tags we're searching
def create_member_method?(klass, member, type = :read) return true if (klass.tags(:attr) + klass.tags(:attr_reader) + klass.tags(:attr_writer)).empty? return true if member_tag_for_member(klass, member, type) return !member_tag_for_member(klass, member, :write) if type == :read !member_tag_for_member(klass, member, :read) end