class Nydp::Fn

Attributes

src[RW]

Public Class Methods

new(&b) click to toggle source
Calls superclass method
# File lib/nydp/interpreted_function.rb, line 8
def initialize &b
  super &b
end

Public Instance Methods

container_class_name() click to toggle source
# File lib/nydp/interpreted_function.rb, line 14
def container_class_name
  file, line = source_location
  [file.split(/\//).last, line].join(":")
end
inspect() click to toggle source
# File lib/nydp/interpreted_function.rb, line 18
def inspect
  [@name, Nydp.nydp_from_backtrace(source_location.join(":"))].compact.join(" : ")
end
is_named(name) click to toggle source
# File lib/nydp/interpreted_function.rb, line 28
def is_named name
  @name = name
end
nydp_type() click to toggle source
# File lib/nydp/interpreted_function.rb, line 24
def nydp_type
  :fn
end
to_s() click to toggle source
# File lib/nydp/interpreted_function.rb, line 11
def to_s
  Nydp.nydp_from_backtrace(source_location.join(":"))
end