Method: Path#to_json

Defined in:
lib/path/identity.rb

#to_json(*args) ⇒ Object

JSON dumping.



131
132
133
134
135
136
# File 'lib/path/identity.rb', line 131

def to_json(*args)
  {
    'json_class' => 'Path',
    'data'       => @path
  }.to_json(*args)
end