Module: Mantra::Helpers::ObjectWithType::InstanceMethods

Defined in:
lib/mantra/helpers/object_with_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



57
58
59
# File 'lib/mantra/helpers/object_with_type.rb', line 57

def options
  @options
end

Instance Method Details

#initialize(options = {}) ⇒ Object



59
60
61
# File 'lib/mantra/helpers/object_with_type.rb', line 59

def initialize(options={})
  @options = options
end

#typeObject



53
54
55
# File 'lib/mantra/helpers/object_with_type.rb', line 53

def type
  self.class.type
end