Sha256: 16e43bb854a0b4554a32246b99bbeeeaed8dfe0d0025532cb7fb158d96c07389

Contents?: true

Size: 213 Bytes

Versions: 4

Compression:

Stored size: 213 Bytes

Contents

class ExternalFunction < Struct.new(:name, :type, :signature, :body)
  def initialize(*)
    super
    self.name = self.name.to_sym
  end

  def tokens
    signature.flat_map { |t| [t, :comma] }[0...-1]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dentaku-1.2.1 lib/dentaku/external_function.rb
dentaku-1.2.0 lib/dentaku/external_function.rb
dentaku-1.1.0 lib/dentaku/external_function.rb
dentaku-1.0.0 lib/dentaku/external_function.rb