Class: When::RS::Identifier
- Inherits:
-
Object
- Object
- When::RS::Identifier
- Defined in:
- lib/when_exe/basictypes.rb
Overview
参照系の識別子
see gml schema
Instance Attribute Summary collapse
-
#name ⇒ When::BasicTypes::Code
readonly
The code or name for this Identifier.
-
#remarks ⇒ Array<String>
readonly
Remarks about this code or alias.
-
#version ⇒ Array<String>
readonly
Identifier of the version of the associated codeSpace or code.
Instance Method Summary collapse
-
#initialize(name, version = nil, remarks = nil) ⇒ Identifier
constructor
オブジェクトの生成.
-
#method_missing(name, *args, &block) ⇒ Object
その他のメソッド.
Constructor Details
#initialize(name, version = nil, remarks = nil) ⇒ Identifier
オブジェクトの生成
703 704 705 706 707 |
# File 'lib/when_exe/basictypes.rb', line 703 def initialize(name, version=nil, remarks=nil) @name = name @version = version @remarks = remarks end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
Note:
When::RS::Identifier で定義されていないメソッドは 処理を @name (type: When::BasicTypes::Code) に委譲する
その他のメソッド
714 715 716 717 718 719 720 721 |
# File 'lib/when_exe/basictypes.rb', line 714 def method_missing(name, *args, &block) self.class.module_eval %Q{ def #{name}(*args, &block) @name.send("#{name}", *args, &block) end } unless When::Parts::MethodCash.escape(name) @name.send(name, *args, &block) end |
Instance Attribute Details
#name ⇒ When::BasicTypes::Code (readonly)
The code or name for this Identifier
683 684 685 |
# File 'lib/when_exe/basictypes.rb', line 683 def name @name end |