Sha256: e18f6457638b65bb71d6d8f83a2c36dc632d0b53d3005d21278b03b95f141231
Contents?: true
Size: 361 Bytes
Versions: 13
Compression:
Stored size: 361 Bytes
Contents
module Udongo module Configs class FlexibleContent include Virtus.model BREAKPOINTS = %w(xs sm md lg xl) attribute :types, Array, default: %w(text image) attribute :allowed_breakpoints, Array, default: BREAKPOINTS def allowed_breakpoint?(value) allowed_breakpoints.include?(value.to_s) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems