Class: Refinement

Inherits:
Module show all
Defined in:
opal/opal/corelib/module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Module

#<, #<=, #<=>, #===, #>, #>=, #__marshal__, #alias_method, #alias_native, allocate, #ancestors, #append_features, #attr, #attr_accessor, #attr_reader, #attr_writer, #autoload, #autoload?, #class_variable_defined?, #class_variable_get, #class_variable_set, #class_variables, #const_added, #const_defined?, #const_get, #const_missing, #const_set, constants, #constants, #copy_class_variables, #copy_constants, #define_method, #dup, #extend_object, #extended, #freeze, #include, #include?, #included, #included_modules, #initialize, #instance_method, #instance_methods, #instance_variables, #method_added, #method_defined?, #method_removed, #method_undefined, #module_eval, #module_exec, #module_function, #name, nesting, #prepend, #prepend_features, #prepended, #private_class_method, #private_constant, #private_method_defined?, #public, #public_constant, #refine, #refinements, #remove_class_variable, #remove_const, #remove_method, #singleton_class?, #to_s, #undef_method, #using

Constructor Details

This class inherits a constructor from Module

Instance Attribute Details

#refined_classObject (readonly)

Returns the value of attribute refined_class.



802
803
804
# File 'opal/opal/corelib/module.rb', line 802

def refined_class
  @refined_class
end

Instance Method Details

#inspectObject



804
805
806
807
808
809
810
# File 'opal/opal/corelib/module.rb', line 804

def inspect
  if @refinement_module
    "#<refinement:#{@refined_class.inspect}@#{@refinement_module.inspect}>"
  else
    super
  end
end