Class: When::CalendarNote::Japanese::Note
- Inherits:
-
BasicTypes::Object
- Object
- BasicTypes::Object
- When::CalendarNote::Japanese::Note
- Includes:
- NoteElement
- Defined in:
- lib/when_exe/region/japanese/notes.rb,
lib/when_exe/region/japanese/notes.rb
Overview
日本暦注用の Notes の要素のための内部クラス
Constant Summary
Constants included from Parts::Resource
Parts::Resource::ConstList, Parts::Resource::ConstTypes, Parts::Resource::IRIDecode, Parts::Resource::IRIDecodeTable, Parts::Resource::IRIEncode, Parts::Resource::IRIEncodeTable, Parts::Resource::IRIHeader, Parts::Resource::LabelProperty
Constants included from Namespace
Namespace::DC, Namespace::DCQ, Namespace::DCT, Namespace::FOAF, Namespace::OWL, Namespace::RDF, Namespace::RDFC, Namespace::RDFS, Namespace::RSS, Namespace::XSD
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#suffix ⇒ Object
readonly
Returns the value of attribute suffix.
Attributes included from Parts::Resource
#_pool, #child, #keys, #locale, #namespace
Instance Method Summary collapse
-
#_to_hash_value(options = {}) ⇒ Object
_m17n_form のための要素生成.
- #to_note_hash(note, dates = nil) ⇒ Object
Methods included from Parts::Resource
#[], #^, _abbreviation_to_iri, _decode, _encode, _extract_prefix, _instance, _instantiate, _parse, _path_with_prefix, _replace_tags, _setup_, _setup_info, _simplify_path, base_uri, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #parent, #registered?, root_dir
Methods included from Parts::Resource::Pool
#[], #[]=, #_pool, #_setup_, #pool_keys
Methods included from Parts::Resource::Synchronize
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class When::Parts::Resource
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
409 410 411 |
# File 'lib/when_exe/region/japanese/notes.rb', line 409 def label @label end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
409 410 411 |
# File 'lib/when_exe/region/japanese/notes.rb', line 409 def position @position end |
#suffix ⇒ Object (readonly)
Returns the value of attribute suffix.
409 410 411 |
# File 'lib/when_exe/region/japanese/notes.rb', line 409 def suffix @suffix end |
Instance Method Details
#_to_hash_value(options = {}) ⇒ Object
_m17n_form のための要素生成
45 46 47 |
# File 'lib/when_exe/region/japanese/notes.rb', line 45 def _to_hash_value(={}) [:method] == :to_m17n ? label : super end |
#to_note_hash(note, dates = nil) ⇒ Object
411 412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/when_exe/region/japanese/notes.rb', line 411 def to_note_hash(note, dates=nil) { :note => self, :value => case @suffix when '是' ; [@label + '是-', note[/.\z/]] when '在' ; [@label + '在-', note] when '-' ; [@label + '-', note] else ; note end, :position => @position[@position.size == 1 ? 0 : dates.index_g] } end |