Sha256: 5b1739d0a2c5e5e239bc5fe573472656a6b9ad2cf6d0ff191cce0488cf4bff08

Contents?: true

Size: 286 Bytes

Versions: 6

Compression:

Stored size: 286 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)
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
netzke-core-0.7.5 lib/netzke/core_ext/symbol.rb
netzke-core-0.7.4 lib/netzke/core_ext/symbol.rb
netzke-core-0.7.3 lib/netzke/core_ext/symbol.rb
netzke-core-0.7.2 lib/netzke/core_ext/symbol.rb
netzke-core-0.7.1 lib/netzke/core_ext/symbol.rb
netzke-core-0.7.0 lib/netzke/core_ext/symbol.rb