Class: Smartthumbs::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/smartthumbs.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.optionsObject

Returns the value of attribute options.



20
21
22
# File 'lib/smartthumbs.rb', line 20

def options
  @options
end

Class Method Details

.get_option(key) ⇒ Object



26
27
28
29
# File 'lib/smartthumbs.rb', line 26

def get_option(key)
  self.options ||= {}
  self.options[key]
end

.run {|self.options| ... } ⇒ Object

Yields:



21
22
23
24
# File 'lib/smartthumbs.rb', line 21

def run
  self.options ||= {}
  yield self.options
end