Sha256: 8c98467540b9a81b26a189c4f3adb2064bcc51c0d34f3d5c5ce0b67a03237ef4

Contents?: true

Size: 277 Bytes

Versions: 5

Compression:

Stored size: 277 Bytes

Contents

module EasyParams
  module DSL
    def each(&block)
      array.of(struct_dsl, &block)
    end

    def has(&block)
      struct_dsl(&block)
    end

    def method_missing(method_name, *args, &block)
      public_send(:attribute, method_name, *args, &block)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
easy_params-0.1.2 lib/easy_params/dsl.rb
easy_params-0.2.1 lib/easy_params/dsl.rb
easy_params-0.1.1 lib/easy_params/dsl.rb
easy_params-0.2.0 lib/easy_params/dsl.rb
easy_params-0.1.0 lib/easy_params/dsl.rb