Class: When::CalendarNote::HinduNote::Dates

Inherits:
Object
  • Object
show all
Defined in:
lib/when_exe/region/indian.rb

Overview

pancanga 計算に必要となる情報をまとめた内部クラス

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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

その他のメソッドは @l_date に移譲する



1149
1150
1151
1152
1153
1154
1155
1156
# File 'lib/when_exe/region/indian.rb', line 1149

def method_missing(name, *args, &block)
  self.class.module_eval %Q{
    def #{name}(*args, &block)
      @l_date.send("#{name}", *args, &block)
    end
  } unless When::Parts::MethodCash.escape(name)
  @l_date.send(name, *args, &block)
end