Top Level Namespace
Defined Under Namespace
Modules: Peto, PetoClass, PetoErrorable
Classes: String
Constant Summary
collapse
- Version =
IO.read(File.join(File.dirname(__FILE__), '..', "VERSION"))
Instance Method Summary
collapse
Instance Method Details
#as_default_value(type) ⇒ Object
46
47
48
49
50
51
52
53
|
# File 'lib/peto/generator.rb', line 46
def as_default_value(type)
case type
when "int"
"0"
else
"null"
end
end
|
#as_primitive_types ⇒ Object
43
44
45
|
# File 'lib/peto/generator.rb', line 43
def as_primitive_types
["int", "String", "Number", "uint", "Boolean"]
end
|
#rb_primitive_types ⇒ Object
40
41
42
|
# File 'lib/peto/generator.rb', line 40
def rb_primitive_types
[Fixnum, String]
end
|