Class: SistemKebut::Paragraph::MejaSekatPantulan

Inherits:
Object
  • Object
show all
Defined in:
lib/kompleks/dasar.rb

Instance Method Summary collapse

Constructor Details

#initialize(unit, riil) ⇒ MejaSekatPantulan

Returns a new instance of MejaSekatPantulan.



8
9
10
11
# File 'lib/kompleks/dasar.rb', line 8

def initialize(unit, riil)
  @unit = unit
  @riil = riil
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/kompleks/dasar.rb', line 13

def method_missing(meth, *args, &block)
  resp = @unit.setelan.fetch(meth) { @riil.send(meth) }
  if resp.nil?
    super(meth, *args, &block)
  end
  return resp
end