Module: Clusta::Serialization
- Included in:
- Geometry::Element
- Defined in:
- lib/clusta/serialization.rb,
lib/clusta/serialization/tsv.rb,
lib/clusta/serialization/json.rb
Overview
Defines methods that allow a class to (de)serialize itself in a way compatabile with Wukong.
Defined Under Namespace
Modules: ClassMethods, JSON, TSV
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(klass) ⇒ Object
10
11
12
|
# File 'lib/clusta/serialization.rb', line 10
def self.included klass
klass.extend(ClassMethods)
end
|
Instance Method Details
#initialize(*args) ⇒ Object
18
19
20
|
# File 'lib/clusta/serialization.rb', line 18
def initialize *args
process_args(*args)
end
|
#process_args(*args) ⇒ Object
22
23
|
# File 'lib/clusta/serialization.rb', line 22
def process_args *args
end
|
#stream_name ⇒ Object
14
15
16
|
# File 'lib/clusta/serialization.rb', line 14
def stream_name
self.class.stream_name
end
|