Class: Renderer::Component::AttributeDisplay
- Inherits:
-
Renderer::Component
- Object
- Renderer::Component
- Renderer::Component::AttributeDisplay
- Defined in:
- lib/renderer/component/attribute_display.rb
Instance Attribute Summary
Attributes inherited from Renderer::Component
Instance Method Summary collapse
Methods inherited from Renderer::Component
#initialize, prop, #props, #render, #template
Constructor Details
This class inherits a constructor from Renderer::Component
Instance Method Details
#prepare ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/renderer/component/attribute_display.rb', line 8 def prepare @attr_type = case item.type when :accessor then "read/write" when :reader then "read-only" else "write-only" end end |