12 Matching Annotations
- Sep 2024
- May 2024
-
github.com github.com
-
# This is manual way to describe complex parameters parameter :one_level_array, type: :array, items: {type: :string, enum: ['string1', 'string2']}, default: ['string1'] parameter :two_level_array, type: :array, items: {type: :array, items: {type: :string}} let(:one_level_array) { ['string1', 'string2'] } let(:two_level_array) { [['123', '234'], ['111']] }
-
- Mar 2023
-
doorkeeper.gitbook.io doorkeeper.gitbook.io
- Aug 2021
-
www.martinfowler.com www.martinfowler.com
-
An internal DSL (often called an Embedded DSL) is a DomainSpecificLanguage that is written inside an existing host language. It's a common way of thinking in a number of programming language communities - particularly the Lisp community. It's now gaining a lot of attention as DSLs are a common way of thinking in the rapidly growing Ruby community.
Tags
Annotators
URL
-
- Jun 2021
-
github.com github.com
-
using RSpec::Parameterized::TableSyntax where(:a, :b, :answer) do 1 | 2 | 3 5 | 8 | 13 0 | 0 | 0 end
-
- Mar 2021
-
hyperstack.org hyperstack.org
-
Notice that the HTML elements (BUTTON, DIV, etc.) are in CAPS. We know this is bending the standard Ruby style rules slightly, but we think it reads better this way.
-
-
- Nov 2020
-
guides.rubyonrails.org guides.rubyonrails.org
-
You can use the match method with the :via option to match multiple verbs at once:
-
- Apr 2020
-
tenderlovemaking.com tenderlovemaking.com
-
But where is the helper method defined? What’s its visibility? Can I put it in a module? Can I use inheritance? Who can call it? Can I call super from the extracted method? If so, where does super go?
-
-
github.com github.com
-
Similar to: form_for, but not actually for forms, apparently
Tags
Annotators
URL
-
- Feb 2020
-
github.com github.com
Tags
Annotators
URL
-
- Jan 2020
-
github.com github.com
-