diff --git a/docs/app/components/themes/grid/repo_tabs.rb b/docs/app/components/themes/grid/repo_tabs.rb index 78a2b623..c3a3da40 100644 --- a/docs/app/components/themes/grid/repo_tabs.rb +++ b/docs/app/components/themes/grid/repo_tabs.rb @@ -4,7 +4,7 @@ module Components module Themes module Grid class RepoTabs < Components::Base - Repo = Struct.new(:github_url, :name, :stars, :version, keyword_init: true) + Repo = Struct.new(:github_url, :name, :stars, :version) def view_template Tabs(default_value: "overview", class: "w-full") do diff --git a/docs/app/components/themes/grid/table.rb b/docs/app/components/themes/grid/table.rb index 0f8a6189..d9fd498b 100644 --- a/docs/app/components/themes/grid/table.rb +++ b/docs/app/components/themes/grid/table.rb @@ -4,7 +4,7 @@ module Components module Themes module Grid class Table < Components::Base - User = Struct.new(:avatar_url, :name, :username, :commits, :github_url, keyword_init: true) + User = Struct.new(:avatar_url, :name, :username, :commits, :github_url) # def view_template # render RubyUI::Card.new(class: "p-6") do diff --git a/docs/app/views/docs/data_table.rb b/docs/app/views/docs/data_table.rb index f77dcb09..f079b755 100644 --- a/docs/app/views/docs/data_table.rb +++ b/docs/app/views/docs/data_table.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::DataTable < Views::Base - Row = Struct.new(:id, :name, :email, :salary, :status, keyword_init: true) + Row = Struct.new(:id, :name, :email, :salary, :status) def view_template @rows = [ diff --git a/docs/app/views/docs/table.rb b/docs/app/views/docs/table.rb index 8ac4d8c0..5eaa2ba6 100644 --- a/docs/app/views/docs/table.rb +++ b/docs/app/views/docs/table.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true class Views::Docs::Table < Views::Base - Invoice = Struct.new(:identifier, :status, :method, :amount, keyword_init: true) - User = Struct.new(:avatar_url, :name, :username, :commits, :github_url, keyword_init: true) + Invoice = Struct.new(:identifier, :status, :method, :amount) + User = Struct.new(:avatar_url, :name, :username, :commits, :github_url) def view_template component = "Table" diff --git a/docs/app/views/docs/tabs.rb b/docs/app/views/docs/tabs.rb index 33b6ff34..b37a2ff8 100644 --- a/docs/app/views/docs/tabs.rb +++ b/docs/app/views/docs/tabs.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::Tabs < Views::Base - Repo = Struct.new(:github_url, :name, :stars, :version, keyword_init: true) + Repo = Struct.new(:github_url, :name, :stars, :version) def view_template component = "Tabs" diff --git a/gem/lib/ruby_ui/data_table/data_table_docs.rb b/gem/lib/ruby_ui/data_table/data_table_docs.rb index 7864c2b9..535a81a9 100644 --- a/gem/lib/ruby_ui/data_table/data_table_docs.rb +++ b/gem/lib/ruby_ui/data_table/data_table_docs.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::DataTable < Views::Base - Row = Struct.new(:id, :name, :email, :salary, :status, keyword_init: true) + Row = Struct.new(:id, :name, :email, :salary, :status) SAMPLE_ROWS = [ Row.new(id: 1, name: "Alice", email: "alice@example.com", salary: 90_000, status: "Active"), diff --git a/gem/lib/ruby_ui/table/table_docs.rb b/gem/lib/ruby_ui/table/table_docs.rb index 8ac4d8c0..5eaa2ba6 100644 --- a/gem/lib/ruby_ui/table/table_docs.rb +++ b/gem/lib/ruby_ui/table/table_docs.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true class Views::Docs::Table < Views::Base - Invoice = Struct.new(:identifier, :status, :method, :amount, keyword_init: true) - User = Struct.new(:avatar_url, :name, :username, :commits, :github_url, keyword_init: true) + Invoice = Struct.new(:identifier, :status, :method, :amount) + User = Struct.new(:avatar_url, :name, :username, :commits, :github_url) def view_template component = "Table" diff --git a/gem/lib/ruby_ui/tabs/tabs_docs.rb b/gem/lib/ruby_ui/tabs/tabs_docs.rb index 33b6ff34..b37a2ff8 100644 --- a/gem/lib/ruby_ui/tabs/tabs_docs.rb +++ b/gem/lib/ruby_ui/tabs/tabs_docs.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::Tabs < Views::Base - Repo = Struct.new(:github_url, :name, :stars, :version, keyword_init: true) + Repo = Struct.new(:github_url, :name, :stars, :version) def view_template component = "Tabs"