Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/cog/primitive.rb
Instance Method Summary collapse
-
#default_lit ⇒ String
Assuming this symbol represents a cog primitive type, returns the literal representation of the default value for that type.
-
#to_prim ⇒ String
Assuming this symbol represents a cog primitive type, returns an identifier of the mapped primitive in the Cog.active_language.
Instance Method Details
#default_lit ⇒ String
Returns assuming this symbol represents a cog primitive type, returns the literal representation of the default value for that type.
20 21 22 |
# File 'lib/cog/primitive.rb', line 20 def default_lit Cog.active_language.default_lit_for(self) end |
#to_prim ⇒ String
Returns assuming this symbol represents a cog primitive type, returns an identifier of the mapped primitive in the Cog.active_language.
12 13 14 |
# File 'lib/cog/primitive.rb', line 12 def to_prim Cog.active_language.to_prim(self) end |