class OpenEhr::RM::Support::AssumedTypes::String

Attributes

content[R]

Public Class Methods

new(arg) click to toggle source
# File lib/open_ehr/rm/support/assumed_types.rb, line 59
def initialize(arg)
  @content = arg
end

Public Instance Methods

as_integer() click to toggle source
# File lib/open_ehr/rm/support/assumed_types.rb, line 63
def as_integer
  is_integer if is_integer
end
is_empty() click to toggle source
# File lib/open_ehr/rm/support/assumed_types.rb, line 67
def is_empty
end
is_integer() click to toggle source
# File lib/open_ehr/rm/support/assumed_types.rb, line 70
def is_integer
  begin
    Integer(@content)
  rescue
    false
  end
end