module Bridgetown::DataAccessible
TODO: to be retired once the Resource
engine is made official
Public Instance Methods
[](property)
click to toggle source
Accessor for data properties by Liquid.
property - The String name of the property to retrieve.
Returns the String value or nil if the property isn't included.
# File lib/bridgetown-core/concerns/data_accessible.rb, line 16 def [](property) data[property] end
to_s()
click to toggle source
Returns the contents as a String.
# File lib/bridgetown-core/concerns/data_accessible.rb, line 7 def to_s output || content || "" end