Class: Seasar::Beans::AbstractPropertyDesc
- Inherits:
-
Object
- Object
- Seasar::Beans::AbstractPropertyDesc
- Defined in:
- lib/seasar/beans/abstract-property-desc.rb
Overview
プロパティの定義を行う抽象クラスです。
Direct Known Subclasses
Instance Attribute Summary collapse
-
#array_acceptable ⇒ Object
Returns the value of attribute array_acceptable.
-
#property_name ⇒ Object
Returns the value of attribute property_name.
-
#typehint ⇒ Object
Returns the value of attribute typehint.
Instance Method Summary collapse
-
#get_value(instance) ⇒ Object
プロパティ値を返します。.
-
#initialize(prop_name) ⇒ AbstractPropertyDesc
constructor
PropertyDescを構築します。.
-
#set_value(instance, value) ⇒ Object
プロパティ値をセットするメソッド定義です。.
Constructor Details
#initialize(prop_name) ⇒ AbstractPropertyDesc
PropertyDescを構築します。
-
args
-
Symbol prop_name
-
51 52 53 54 55 |
# File 'lib/seasar/beans/abstract-property-desc.rb', line 51 def initialize(prop_name) @property_name = prop_name @typehint = nil @array_acceptable = false end |
Instance Attribute Details
#array_acceptable ⇒ Object
Returns the value of attribute array_acceptable.
56 57 58 |
# File 'lib/seasar/beans/abstract-property-desc.rb', line 56 def array_acceptable @array_acceptable end |
#property_name ⇒ Object
Returns the value of attribute property_name.
56 57 58 |
# File 'lib/seasar/beans/abstract-property-desc.rb', line 56 def property_name @property_name end |
#typehint ⇒ Object
Returns the value of attribute typehint.
56 57 58 |
# File 'lib/seasar/beans/abstract-property-desc.rb', line 56 def typehint @typehint end |
Instance Method Details
#get_value(instance) ⇒ Object
プロパティ値を返します。
-
args
-
Object instance
-
-
return
-
mixed
-
44 45 |
# File 'lib/seasar/beans/abstract-property-desc.rb', line 44 def get_value(instance) end |
#set_value(instance, value) ⇒ Object
プロパティ値をセットするメソッド定義です。
-
args
-
Object instance
-
mixed value
-
-
return
-
nil
-
34 35 |
# File 'lib/seasar/beans/abstract-property-desc.rb', line 34 def set_value(instance, value) end |