Sha256: c5a5bbf515a5e940c9d924769ff731e7f713b70407dd1f04e64e972b94059836

Contents?: true

Size: 128 Bytes

Versions: 19

Compression:

Stored size: 128 Bytes

Contents

class String
  def to_field
    self.gsub(/ /, "_").downcase
  end

  def to_class
    Object.const_get self
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mohawk-1.0 features/support/string.rb
mohawk-0.4.4 features/support/string.rb
mohawk-0.4.3 features/support/string.rb
mohawk-0.4.2 features/support/string.rb
mohawk-0.4.1 features/support/string.rb
mohawk-0.4 features/support/string.rb
mohawk-0.3 features/support/string.rb
mohawk-0.2.1 features/support/string.rb
mohawk-0.2 features/support/string.rb
mohawk-0.1.4 features/support/string.rb
mohawk-0.1.0 features/support/string.rb
mohawk-0.0.9 features/support/string.rb
mohawk-0.0.8 features/support/string.rb
mohawk-0.0.7 features/support/string.rb
mohawk-0.0.6 features/support/string.rb
mohawk-0.0.5 features/support/string.rb
mohawk-0.0.4 features/support/string.rb
mohawk-0.0.3 features/support/string.rb
mohawk-0.0.2 features/support/string.rb