Class: Seasar::Beans::AbstractPropertyDesc

Inherits:
Object
  • Object
show all
Defined in:
lib/seasar/beans/abstract-property-desc.rb

Overview

プロパティの定義を行う抽象クラスです。

Direct Known Subclasses

AttributeAccessorDesc, InstanceVariableDesc

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prop_name) ⇒ AbstractPropertyDesc

PropertyDescを構築します。

  • args

    1. 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_acceptableObject

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_nameObject

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

#typehintObject

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

    1. 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

    1. Object instance

    2. mixed value

  • return

    • nil



34
35
# File 'lib/seasar/beans/abstract-property-desc.rb', line 34

def set_value(instance, value)
end