Sha256: ac8a8497996bc0c39e7ce2ce0ca6d3d9ef4707cf3d8694734e4926e26f1fce76

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

class Symbol
  def jsonify
    self.to_s.camelize(:lower).to_sym
  end

  def l
    ActiveSupport::JSON::Variable.new(self.to_s)
  end

  def action(config = {})
    config.merge(:action => self.to_s)
  end

  def component(config = {})
    config.merge(:component => self.to_s)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netzke-core-0.6.3 lib/netzke/core_ext/symbol.rb