Class: When::BasicTypes::Code
- Defined in:
- lib/when_exe/basictypes.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code_space ⇒ String
(also: #codeSpace)
readonly
an optional codeSpace.
Instance Method Summary collapse
-
#initialize(code, namespace = nil) ⇒ Code
constructor
オブジェクトの生成.
Methods inherited from String
#^, #calendar, #calendar_era, #calendar_note, #clock, #encode, #era, #ideographic_unification, #m17n, #ord, #resource, #to_m17n, #to_month_name, #to_pair, #to_r, #to_residue, #translate, #when?
Methods included from EncodingConversion
#+@, #-@, #to_external_encoding, #to_internal_encoding
Constructor Details
#initialize(code, namespace = nil) ⇒ Code
オブジェクトの生成
437 438 439 440 |
# File 'lib/when_exe/basictypes.rb', line 437 def initialize(code, namespace=nil) @code_space = namespace self[0..-1] = code end |
Instance Attribute Details
#code_space ⇒ String Also known as: codeSpace
an optional codeSpace
428 429 430 |
# File 'lib/when_exe/basictypes.rb', line 428 def code_space @code_space end |