{"id":22808237,"url":"https://github.com/sixarm/sixarm_ruby_rexml_element_new_with_options","last_synced_at":"2026-04-30T01:38:52.308Z","repository":{"id":2780437,"uuid":"3779871","full_name":"SixArm/sixarm_ruby_rexml_element_new_with_options","owner":"SixArm","description":"SixArm.com » Ruby » REXML::Element.new_with_options methods to build elements","archived":false,"fork":false,"pushed_at":"2025-04-14T09:20:59.000Z","size":263,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T01:54:34.400Z","etag":null,"topics":["element","extensions","gem","rexml","ruby"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-03-20T20:50:51.000Z","updated_at":"2025-04-14T09:21:03.000Z","dependencies_parsed_at":"2025-04-14T10:25:55.021Z","dependency_job_id":"5aff155a-4d02-406a-a109-9b37fa3e2be7","html_url":"https://github.com/SixArm/sixarm_ruby_rexml_element_new_with_options","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SixArm/sixarm_ruby_rexml_element_new_with_options","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_rexml_element_new_with_options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_rexml_element_new_with_options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_rexml_element_new_with_options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_rexml_element_new_with_options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_rexml_element_new_with_options/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_rexml_element_new_with_options/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32451481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["element","extensions","gem","rexml","ruby"],"created_at":"2024-12-12T11:08:49.643Z","updated_at":"2026-04-30T01:38:52.292Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com → Ruby → \u003cbr\u003e REXML::Element.new_with_options methods to build elements\n\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_rexml_element_new_with_options/doc\u003e\n* Gem: \u003chttp://rubygems.org/gems/sixarm_ruby_rexml_element_new_with_options\u003e\n* Repo: \u003chttp://github.com/sixarm/sixarm_ruby_rexml_element_new_with_options\u003e\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nThis adds convenience methods to REXML::Element so we can create an Element easily.\n\nExample:\n\n    e = Element.new_with_options(:name =\u003e \"foo\", :text =\u003e \"bar\")                                                                                                                                                                                                           \n    #=\u003e element with name \"foo\" and text \"bar\"  \n\nThere are options for creating an Element with children, attributes, text, and\nadditional methods that can create a table data cell and table row.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_rexml_element_new_with_options/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_rexml_element_new_with_options\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_rexml_element_new_with_options'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_rexml_element_new_with_options'\n\n\u003c!--install-shut--\u003e\n\n\n## Example of children\n\n    child_1 = REXML::Element.new(...)\n    child_2 = REXML::Element.new(...)\n    child_3 = REXML::Element.new(...)\n    e = Element.new_with_options(:children =\u003e [child_1, child_2, child_3])    \n    #=\u003e element that has child elements\n\n## Example of table methods\n\n    e = Element.new_with_options_as_td(:text =\u003e \"bar\")                                                                                                                                                                                                                     \n    #=\u003e element with name \"td\" and text \"bar\"  \n\n    e = Element.new_with_options_as_tr(:text =\u003e \"bar\")                                                                                                                                                                                                                     \n    #=\u003e element with name \"tr\" and text \"bar\"  \n\n    e = Element.new_with_options_as_tr(:cells =\u003e [\"a\", \"b\", \"c\"])                                                                                                                                                                                                               \n    #=\u003e element with name==\"tr\" and children elements with name \"td\" and text \"a\", \"b\", \"c\" \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_rexml_element_new_with_options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_rexml_element_new_with_options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_rexml_element_new_with_options/lists"}