• Home
  • About
    • News
  • Subscribe
    • Personal Subscriptions
    • Team Pricing
  • Episodes
    • All Episodes
    • Freebies
    • Guest Episodes
    • Categories
      • APIs and Libraries
      • Applications
      • Design
      • Language
      • Patterns and Anti-Patterns
      • Style
      • Testing
      • Tools
    • Surprise me!
    • Video Downloads
  • Courses
    • Tasting Menus
    • Feasts
  • Help
    • FAQ
    • Contact
    • Nominate a Guest Chef
    • Privacy
  • Log in
  • Twitter
  • Facebook

Categories

Tags

activerecord asynchrony code smells command line concurrency containers corelib data database debugging devcontainers domain modeling Enumerable & Enumerator failure handling files guest idioms Input - Output iteration linux literals logging metaprogramming oop patterns practices processes (execution) rails refactoring regex rspec RubyGems stdlib strings syntax systems tdd test doubles testing text threads tools unix value objects variables
January 2013
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Dec   Feb »

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Mobile Analytics
  • All
  • Language
  • Design
  • Style
  • APIs and Libraries
  • Testing
  • Freebies
Let's Eat
  • Twitter
  • Facebook
Recent Episodes

RubyTapas

Short Screencasts of Gourmet Ruby, by Avdi Grimm

  • Home
  • About
    • News
  • Subscribe
    • Personal Subscriptions
    • Team Pricing
  • Episodes
    • All Episodes
    • Freebies
    • Guest Episodes
    • Categories
      • APIs and Libraries
      • Applications
      • Design
      • Language
      • Patterns and Anti-Patterns
      • Style
      • Testing
      • Tools
    • Surprise me!
    • Video Downloads
  • Courses
    • Tasting Menus
    • Feasts
  • Help
    • FAQ
    • Contact
    • Nominate a Guest Chef
    • Privacy
  • Log in
  • APIs and Libraries
  • Premium Episodes
  • S2 Premium

Episode #044: #one?

Avdi Grimm January 9, 2013 0 Comments

Somtetimes you need to know if exactly one element in a collection has a given property. For that situation, we have the #one? predicate method.

This page is just for members. Sign in or subscribe to gain access!

 
 
Forgot Password

Related

CategoriesAPIs and Libraries, Premium Episodes, S2 Premium
Tagscontainers, corelib, Enumerable & Enumerator
Previous
Episode #043: Exclusive Or
January 7, 2013
Next
Episode #045: Hash Default Value
January 11, 2013
  • All
  • Language
  • Design
  • Style
  • APIs and Libraries
  • Testing
  • Freebies
  • Home
  • About
  • Subscribe
  • Episodes
  • Courses
  • Help
  • Log in
© 2021 ShipRise LLC