class WAG::Param
Attributes
label[R]
type[R]
Public Class Methods
new(type, label = nil)
click to toggle source
# File lib/wag/param.rb, line 9 def initialize(type, label = nil) @type = WAG::Type.from(type) @label = WAG::Label.from(label) if label end
Public Instance Methods
to_sexpr()
click to toggle source
# File lib/wag/param.rb, line 14 def to_sexpr return [:param, label.to_sexpr, type.to_sexpr] if label [:param, type.to_sexpr] end