class Bpl::AST::TypeDeclaration

Public Instance Methods

show() { |a| ... } click to toggle source
# File lib/bpl/ast/declaration.rb, line 16
def show(&blk)
  args = @arguments.map{|a| yield a} * " "
  "#{yield :type} #{show_attrs(&blk)} #{yield :finite if @finite} #{yield @name} #{args} #{@type ? " = #{yield @type}" : ""};".fmt
end
signature() click to toggle source
# File lib/bpl/ast/declaration.rb, line 15
def signature; "type #{yield @name}" end