Class: WAG::Type::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/wag/types/base.rb

Direct Known Subclasses

F32, F64, I32, I64

Instance Method Summary collapse

Instance Method Details

#to_sexprObject



6
7
8
9
# File 'lib/wag/types/base.rb', line 6

def to_sexpr
  name = WAG::Inflector.inflector.demodulize(self.class.name.to_s)
  WAG::Inflector.inflector.underscore(name).to_sym
end

#value?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/wag/types/base.rb', line 11

def value?
  true
end