Sha256: d4d8b4cc4c90258df1add119b4ca0150eb405eb7c4ab1025634c3fbf2851791d

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

class Module {
  forwards_unary_ruby_methods

  def [constant_name] {
    """
    @constant_name Name (@String@) of constant's name.
    @return @constant_name's value.

    Returns the value of the constant with the given name in @self.
    """

    const_get(constant_name)
  }

  def included: module {
    """
    @module @Module@ or @Class@ that has been included into @self.
    Gets called when a @Class@ or @Module@ is included into another @Class@.
    """

    # do nothing by default
    nil
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fancy-0.6.0 lib/rbx/module.fy