module XMLable::Mixins::Wrapper

Wrapper module contains methods to wrap the primitive classes

Public Instance Methods

inspect() click to toggle source

@return [String]

# File lib/xmlable/mixins/wrapper.rb, line 32
def inspect
  "[Wrapper(#{__object.class})] #{__object.inspect}"
end
is_a?(klass) click to toggle source

Is wrapped class inherits from given class?

@param [Class] klass

@param [Boolean]

# File lib/xmlable/mixins/wrapper.rb, line 25
def is_a?(klass)
  __object.is_a?(klass)
end
method_missing(*args, &block) click to toggle source
# File lib/xmlable/mixins/wrapper.rb, line 7
def method_missing(*args, &block)
  __object.send(*args, &block)
end
to_s(*args) click to toggle source

@return [String]

# File lib/xmlable/mixins/wrapper.rb, line 14
def to_s(*args)
  __object.to_s(*args)
end