Sha256: 416ab7993cf411c9c508ecc933f49be7c2bf4c3acaaf0a87cd772282c2c1c4e9

Contents?: true

Size: 211 Bytes

Versions: 5

Compression:

Stored size: 211 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dentaku-1.2.6 lib/dentaku/external_function.rb
dentaku-1.2.5 lib/dentaku/external_function.rb
dentaku-1.2.4 lib/dentaku/external_function.rb
dentaku-1.2.3 lib/dentaku/external_function.rb
dentaku-1.2.2 lib/dentaku/external_function.rb