class Shaf::Yard::AttributeObject
Attributes
name[RW]
Public Instance Methods
descriptor()
click to toggle source
# File lib/shaf/yard/attribute_object.rb, line 25 def descriptor profile&.find_attribute(name) end
documentation()
click to toggle source
# File lib/shaf/yard/attribute_object.rb, line 8 def documentation profile_doc || 'Not documented' end
profile()
click to toggle source
# File lib/shaf/yard/attribute_object.rb, line 12 def profile return unless namespace.respond_to? :profile @profile ||= namespace.profile end
profile_doc()
click to toggle source
# File lib/shaf/yard/attribute_object.rb, line 21 def profile_doc descriptor&.doc end
value_types()
click to toggle source
# File lib/shaf/yard/attribute_object.rb, line 17 def value_types Array(descriptor&.type).compact.map(&:to_s) end