Class: Uistiti::Alpha::Flex
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Uistiti::Alpha::Flex
- Defined in:
- app/components/uistiti/alpha/flex.rb
Instance Attribute Summary collapse
-
#align_items ⇒ Object
readonly
Returns the value of attribute align_items.
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#gap ⇒ Object
readonly
Returns the value of attribute gap.
-
#html_options ⇒ Object
readonly
Returns the value of attribute html_options.
-
#justify_content ⇒ Object
readonly
Returns the value of attribute justify_content.
Instance Method Summary collapse
-
#initialize(direction:, gap: nil, justify_content: nil, align_items: nil, html_options: {}) ⇒ Flex
constructor
A new instance of Flex.
Constructor Details
#initialize(direction:, gap: nil, justify_content: nil, align_items: nil, html_options: {}) ⇒ Flex
Returns a new instance of Flex.
8 9 10 11 12 13 14 15 16 |
# File 'app/components/uistiti/alpha/flex.rb', line 8 def initialize(direction: , gap: nil, justify_content: nil, align_items: nil, html_options: {}) super() @direction = direction @justify_content = justify_content @align_items = align_items @gap = gap @html_options = end |
Instance Attribute Details
#align_items ⇒ Object (readonly)
Returns the value of attribute align_items.
7 8 9 |
# File 'app/components/uistiti/alpha/flex.rb', line 7 def align_items @align_items end |
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
7 8 9 |
# File 'app/components/uistiti/alpha/flex.rb', line 7 def direction @direction end |
#gap ⇒ Object (readonly)
Returns the value of attribute gap.
7 8 9 |
# File 'app/components/uistiti/alpha/flex.rb', line 7 def gap @gap end |
#html_options ⇒ Object (readonly)
Returns the value of attribute html_options.
7 8 9 |
# File 'app/components/uistiti/alpha/flex.rb', line 7 def @html_options end |
#justify_content ⇒ Object (readonly)
Returns the value of attribute justify_content.
7 8 9 |
# File 'app/components/uistiti/alpha/flex.rb', line 7 def justify_content @justify_content end |