Skip to content

Commit

Permalink
Merge pull request #209 from nickborromeo/alias-size-and-count
Browse files Browse the repository at this point in the history
Add an alias for count in Trilogy::Result
  • Loading branch information
jhawthorn authored Dec 6, 2024
2 parents 35f2c0b + b0c0177 commit 857c167
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/ruby/lib/trilogy/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ def count
rows.count
end

alias_method :size, :count

def each_hash
return enum_for(:each_hash) unless block_given?

Expand Down

0 comments on commit 857c167

Please sign in to comment.