Sha256: 05b4eb001d19bcafb6714ada0d642babad6b27b075bfa1cb09f842dd8b1c5042

Contents?: true

Size: 203 Bytes

Versions: 7

Compression:

Stored size: 203 Bytes

Contents

module StringHelper
  def name_or_empty(instance)
    instance ? instance.name.upcase : I18n.t('helpers.empty')
  end
  
  def name_or_nothing(instance)
    instance ? instance.name.upcase : ""
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
active_extend-0.0.3.2 lib/active_extend/string_helper.rb
active_extend-0.0.3.1 lib/active_extend/string_helper.rb
active_extend-0.0.3 lib/active_extend/string_helper.rb
active_extend-0.0.2 lib/active_extend/string_helper.rb
active_extend-0.0.1 lib/active_extend/string_helper.rb
guara-0.0.3 lib/active_extend/string_helper.rb
guara-0.0.1.rc lib/active_extend/string_helper.rb