Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/spree/api/testing_support/v2/platform_contexts.rb
Instance Method Summary collapse
Instance Method Details
#articleize ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/spree/api/testing_support/v2/platform_contexts.rb', line 2 def articleize if split.first == 'User' "a #{self}" else %w(a e i o u).include?(self[0].downcase) ? "an #{self}" : "a #{self}" end end |