Module: Orientable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/components/concerns/orientable.rb
Overview
Orientable — adds an ‘orientation` string attribute (vertical / horizontal).
Usage:
class DividerComponent < Component
include Orientable # default: nil
end
class MenuComponent < Component
include Orientable
default orientation: "horizontal" # override default
end