File: abstract-syntax/core/expression/unary/abstract.rb

Overview
Module Structure
Class Hierarchy
Code

Overview

Module Structure

  module: <Toplevel Module>
  module: Umu#6
  module: AbstractSyntax#8
  module: Core#10
  module: Expression#12
  module: Unary#14
  class: Abstract#16
inherits from
  Abstract ( Umu::AbstractSyntax::Core::Expression )
has properties
attribute: obj [R] #17
method: initialize / 2 #20
method: simple? #29

Code

   1  # coding: utf-8
   2  # frozen_string_literal: true
   3 
   4 
   5 
   6  module Umu
   7 
   8  module AbstractSyntax
   9 
  10  module Core
  11 
  12  module Expression
  13 
  14  module Unary
  15 
  16  class Abstract < Expression::Abstract
  17      attr_reader :obj
  18 
  19 
  20      def initialize(loc, obj)
  21          ASSERT.kind_of obj, ::Object
  22 
  23          super(loc)
  24 
  25          @obj = obj
  26      end
  27 
  28 
  29      def simple?
  30          true
  31      end
  32  end
  33 
  34  end # Umu::AbstractSyntax::Core::Expression::Unary
  35 
  36  end # Umu::AbstractSyntax::Core::Expression
  37 
  38  end # Umu::AbstractSyntax::Core
  39 
  40  end # Umu::AbstractSyntax
  41 
  42  end # Umu