Module: ResponsiveImages
- Extended by:
- Config
- Defined in:
- lib/responsive_images/config.rb,
lib/responsive_images/railtie.rb,
lib/responsive_images/version.rb,
lib/responsive_images/rails/engine.rb,
lib/responsive_images/view_helpers.rb,
lib/responsive_images/responsive_images.rb
Defined Under Namespace
Modules: Config, Rails, ViewHelpers Classes: Railtie
Constant Summary collapse
- VERSION =
"0.1.1"
Constants included from Config
Class Method Summary collapse
Methods included from Config
configure, options, responsive_sizes
Class Method Details
.initialize(attrs = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/responsive_images/responsive_images.rb', line 11 def initialize attrs={} attrs = ResponsiveImages..merge(attrs) Config::VALID_OPTION_KEYS.each do |key| instance_variable_set("@#{key}".to_sym, attrs[key]) end end |