Sha256: a36072efb0179a27f96ceda3ee577ce20ce67bee68f6460c59d42119bc96724c

Contents?: true

Size: 430 Bytes

Versions: 8

Compression:

Stored size: 430 Bytes

Contents

class NoMethodError {
  """
  Exception class that gets thrown when a method wasn't found within a class.
  """

  def method_name {
    """
    @return Name of the method not found (as @String@).

    Returns the name of the method that was not found as a @String@.
    """

    match name to_s {
      case /^:/ -> name to_s from: 1 to: -1 . to_sym
      case _ -> name
    }
  }

  def self inspect {
    "NoMethodError"
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fancy-0.10.0 lib/rbx/no_method_error.fy
fancy-0.9.0 lib/rbx/no_method_error.fy
fancy-0.8.0 lib/rbx/no_method_error.fy
fancy-0.7.0 lib/rbx/no_method_error.fy
fancy-0.6.0 lib/rbx/no_method_error.fy
fancy-0.5.0 lib/rbx/no_method_error.fy
fancy-0.4.0 lib/rbx/no_method_error.fy
fancy-0.3.3 lib/rbx/no_method_error.fy