Class: ActiveCMIS::AtomicType::String

Inherits:
CommonBase
  • Object
show all
Defined in:
lib/active_cmis/atomic_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommonBase

#cmis2rb, #rb2cmis

Constructor Details

#initialize(max_length) ⇒ String

Returns a new instance of String.



25
26
27
# File 'lib/active_cmis/atomic_types.rb', line 25

def initialize(max_length)
  @max_length = max_length
end

Instance Attribute Details

#max_lengthObject (readonly)

Returns the value of attribute max_length.



24
25
26
# File 'lib/active_cmis/atomic_types.rb', line 24

def max_length
  @max_length
end

Instance Method Details

#can_handle?(value) ⇒ Boolean

Returns:



43
44
45
# File 'lib/active_cmis/atomic_types.rb', line 43

def can_handle?(value)
  value.respond_to?(:to_s)
end

#to_sObject



29
30
31
# File 'lib/active_cmis/atomic_types.rb', line 29

def to_s
  "String"
end