Sha256: f98c728281ed94b639a863cbcc001409f9321dd5dad7ac58a663ddee872dcbd2

Contents?: true

Size: 516 Bytes

Versions: 10

Compression:

Stored size: 516 Bytes

Contents

Stringex = Module.new unless defined?(Stringex)
ensure_module_defined = ->(base, module_name){
  base.const_set(module_name, Module.new) unless base.const_defined?(module_name)
}
ensure_module_defined[Stringex, :StringExtensions]
ensure_module_defined[Stringex::StringExtensions, :PublicInstanceMethods]
ensure_module_defined[Stringex::StringExtensions, :PublicClassMethods]

String.send :include, Stringex::StringExtensions::PublicInstanceMethods
String.send :extend, Stringex::StringExtensions::PublicClassMethods

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
stringex-2.8.6 lib/stringex/core_ext.rb
stringex-2.8.5 lib/stringex/core_ext.rb
stringex-2.8.4 lib/stringex/core_ext.rb
stringex-2.8.3 lib/stringex/core_ext.rb
stringex-2.8.2 lib/stringex/core_ext.rb
stringex-2.8.1 lib/stringex/core_ext.rb
stringex-2.7.1 lib/stringex/core_ext.rb
stringex-2.7.0 lib/stringex/core_ext.rb
stringex-2.6.1 lib/stringex/core_ext.rb
stringex-2.6.0 lib/stringex/core_ext.rb