Top Level Namespace

Defined Under Namespace

Modules: Niceql, RailsSQLPrettifier

Instance Method Summary collapse

Instance Method Details

#fastObject

1 object


19
20
21
# File 'lib/benchmark/cat.rb', line 19

def fast
  'foo' 'bar'
end

#fast_interpolationObject


23
24
25
# File 'lib/benchmark/cat.rb', line 23

def fast_interpolation
  "#{'foo'}#{'bar'}"
end

#slow_appendObject

2 + 1 = 3 object


14
15
16
# File 'lib/benchmark/cat.rb', line 14

def slow_append
  'foo' << 'bar'
end

#slow_concatObject

2 + 1 = 3 object


9
10
11
# File 'lib/benchmark/cat.rb', line 9

def slow_concat
  'foo'.concat 'bar'
end

#slow_plusObject

2 + 1 = 3 object


4
5
6
# File 'lib/benchmark/cat.rb', line 4

def slow_plus
  'foo' + 'bar'
end