Class: Symbol

Inherits:
Object show all
Defined in:
lib/vendor/dataflow/dataflow/equality.rb,
lib/vendor/json_pure/lib/json/add/core.rb,
lib/vendor/json_pure/lib/json/add/rails.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.json_create(o) ⇒ Object



18
19
20
# File 'lib/vendor/json_pure/lib/json/add/core.rb', line 18

def self.json_create(o)
  o['s'].to_sym
end

Instance Method Details

#==(other) ⇒ Object



15
16
17
# File 'lib/vendor/dataflow/dataflow/equality.rb', line 15

def ==(other)
  object_id == other.object_id
end

#to_json(*a) ⇒ Object



11
12
13
14
15
16
# File 'lib/vendor/json_pure/lib/json/add/core.rb', line 11

def to_json(*a)
  {
    JSON.create_id => self.class.name,
    's' => to_s,
  }.to_json(*a)
end