Sha256: e1bf6a62feb0e4891f7fae82dc42cf697cb5531e851f74fe959b39915e21806e

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 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.2 lib/netzke/core_ext/symbol.rb