Sha256: fc5210e69a52c0cb6adbd81075fe167024a413ebaa7ce123d14a1b5f41cc869e

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

module Danica
  class Function
    include Common
    include VariablesHolder
    include DSL
    include Expressable

    autoload :Name,    'danica/function/name'
    attr_accessor :name

    built_with(:function_block)

    def name
      Name.new(name: @name, variables: containers)
    end

    def to(*args)
      "#{name.to(*args)} = #{function_block.to(*args)}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danica-2.6.0 lib/danica/function.rb