Skip to content
#

Ruby

ruby logo

Ruby was developed by Yukihiro "Matz" Matsumoto in 1995 with the intent of having an easily readable programming language. It is used by the Rails framework to create dynamic web-applications. Ruby's syntax is similar to that of Perl and Python.

Here are 22,818 public repositories matching this topic...

thelucid
thelucid commented Jun 19, 2014

I've come up against a bug with ActiveRecord when using namespaces models and polymorphic associations, it's a common use-case so should probably be fixed before a 4.2 release.

Error:

NoMethodError: undefined method `relation_delegate_class' for Comment:Module

Example:

class Post::Base < ActiveRecord::Base
  self.table_name = 'posts'
end

class Post::Special < Post::Base
  has
graemerocher
graemerocher commented Oct 2, 2019

Currently register looks like:

   private static <T> void register(Map<T, T> substitutions, T annotated, T original, T target) {
        if (annotated != null) {
            guarantee(!substitutions.containsKey(annotated) || substitutions.get(annotated) == original || substitutions.get(annotated) == target, "Already registered: %s", annotated);
            substitutions.put(annotated,
joe-p
joe-p commented Nov 1, 2020

Expected Behavior

When Rubocop encounters '"' + "foo" + '"' it should be autocorrected to '"foo"'

Actual Behavior

When Rubocop 1.1.0 encounters '"' + "foo" + '"' it currently autocorrects to ""foo"" thus leading to a syntax error:

test.rb:3:3: C: [Corrected] Style/StringConcatenation: Prefer string interpolation to string concatenation.
p '"' + "foo" + '"'
  ^^^^^^^
burningTyger
burningTyger commented Feb 1, 2017

The Readme is our comprehensive sinatra documentation and deserves a lot of love. Thank you for everybody who has contributed to it so far!

The translations are great but some of them seem incomplete or outdated. For sinatra 2.0 they need a major overhaul and here's a list of languages that need to be worked on:

  • German
  • Spanish
  • French
  • Hungarian
  • Portuguese (Br
Stratus3D
Stratus3D commented Feb 10, 2019

Steps to reproduce

Run asdf. In help output a line is printed for the asdf env command:

asdf env <command> [executable]      Prints or runs an executable under a command environment

I would assume <command> is an arbitrary command. But from what I can tell needs to be a plugin name or a shim name? I'm also not sure how this differs from executing the shim directly.

FY

Created by Yukihiro Matsumoto

Released December 21, 1995

Repository
ruby/ruby
Website
www.ruby-lang.org/en
Wikipedia
Wikipedia

Related Topics

language python rails
You can’t perform that action at this time.