Class: Rlang::Parser::Klass

Inherits:
Module show all
Includes:
Log
Defined in:
lib/rlang/parser/klass.rb

Overview

Note: Cannot use Class as class name because it’s already used by Ruby

Instance Attribute Summary collapse

Attributes inherited from Module

#attrs, #const, #consts, #cvars, #extends, #includes, #ivars, #methods, #offset, #wnode, #wtype

Instance Method Summary collapse

Methods included from Log

included, logger, #logger, logger=

Methods inherited from Module

#ancestors, #const_get, #delete_class_methods, #delete_instance_methods, #extend, #extended!, #extended?, #include, #included!, #included?, #name, #nesting, #object_class?, #path, #path_name, #prepend, #prepended!, #prepended?, #size, #wasm_name, #wasm_type

Constructor Details

#initialize(const, scope_class, super_class) ⇒ Klass

Returns a new instance of Klass.



19
20
21
22
# File 'lib/rlang/parser/klass.rb', line 19

def initialize(const, scope_class, super_class)
  super(const, scope_class)
  self.super_class = super_class
end

Instance Attribute Details

#super_classObject

Returns the value of attribute super_class.



17
18
19
# File 'lib/rlang/parser/klass.rb', line 17

def super_class
  @super_class
end