Module: Rserve::WithAttributes

Defined in:
lib/rserve/withattributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes


3
4
5
# File 'lib/rserve/withattributes.rb', line 3

def attributes
  @attributes
end

Instance Method Details

#has_attribute?(v) ⇒ Boolean

Returns:

  • (Boolean)

4
5
6
# File 'lib/rserve/withattributes.rb', line 4

def has_attribute?(v)
  !@attributes.nil? and !attributes[v].nil?
end