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.



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

def options
  @options
end

Instance Method Details

#initialize(options = {}) ⇒ Object



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

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

#typeObject



48
49
50
# File 'lib/mantra/helpers/object_with_type.rb', line 48

def type
  self.class.type
end