Class: FeduxOrgStdlib::List
- Inherits:
-
Object
- Object
- FeduxOrgStdlib::List
- Defined in:
- lib/fedux_org_stdlib/list.rb
Overview
A list
Instance Method Summary collapse
-
#initialize(*data) ⇒ List
constructor
A new instance of List.
-
#to_a ⇒ Array
Data as array.
-
#to_s(**options) ⇒ Object
Render data to table.
Constructor Details
Instance Method Details
#to_a ⇒ Array
Data as array
47 48 49 |
# File 'lib/fedux_org_stdlib/list.rb', line 47 def to_a Array(data) end |
#to_s(**options) ⇒ Object
Render data to table
39 40 41 |
# File 'lib/fedux_org_stdlib/list.rb', line 39 def to_s(**) Hirb::Helpers::Table.render data, header_filter: proc(&:humanize), ** end |