Sha256: ec769bc88fb0a43a8f8b9b5d277cd6d035eb05adf3ce786370af8b3ce3ba5e8a

Contents?: true

Size: 262 Bytes

Versions: 11

Compression:

Stored size: 262 Bytes

Contents

module CoreExtensions
  module Array
    def to_pointer_content
      map do |item|
        item = item.to_s.strip
        item =~ /^\[\[.+\]\]$/ ? item : "[[#{item}]]"
      end.join "\n"
    end

    def to_name
      Card::Name.compose self
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
card-1.101.4 config/initializers/01_core_extensions/array.rb
card-1.101.3 config/initializers/01_core_extensions/array.rb
card-1.101.2 config/initializers/01_core_extensions/array.rb
card-1.101.1 config/initializers/01_core_extensions/array.rb
card-1.101.0 config/initializers/01_core_extensions/array.rb
card-1.100.0 config/initializers/01_core_extensions/array.rb
card-1.99.6 config/initializers/01_core_extensions/array.rb
card-1.99.5 config/initializers/01_core_extensions/array.rb
card-1.99.4 config/initializers/01_core_extensions/array.rb
card-1.99.3 config/initializers/01_core_extensions/array.rb
card-1.99.2 config/initializers/01_core_extensions/array.rb