RSSAmplifier

Ilya Bylich - Blog · May 26, 2015

What is Ruby DSL

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

What is Ruby DSL? # As you already know, DSL means domain-specific language. It&rsquo;s like a language in a language. Here are some examples that we use every day: copy class User attr_reader :name end class Profile < ActiveRecord :: Base has_many :posts end class ApiController < ActionController :: Base before_action :authenticate end But all these examples use rails-provided DSL, how about your…

Read on /2015-05-26-what-is-ruby-dsl/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.