Sha256: 739510434fffd7b32158e7b0c865042750a360d01cb9489e5303ed21b247afdf

Contents?: true

Size: 173 Bytes

Versions: 4

Compression:

Stored size: 173 Bytes

Contents

module Fathom
  module NodeUtilities
    def name_sym
      return nil unless self.name
      @name_sym ||= self.name.to_s.downcase.gsub(/\s+/, '_').to_sym
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fathom-0.2.2 lib/fathom/node_utilities.rb
fathom-0.2.1 lib/fathom/node_utilities.rb
fathom-0.2.0 lib/fathom/node_utilities.rb
fathom-0.1.0 lib/fathom/node_utilities.rb