lib/alba/layout.rb in alba-2.1.0 vs lib/alba/layout.rb in alba-2.2.0
- old
+ new
@@ -6,11 +6,11 @@
class Layout
extend Forwardable
def_delegators :@resource, :object, :params, :serializable_hash, :to_h
- # @params file [String] name of the layout file
- # @params inline [Proc] a proc returning JSON string or a Hash representing JSON
+ # @param file [String] name of the layout file
+ # @param inline [Proc] a proc returning JSON string or a Hash representing JSON
def initialize(file:, inline:)
if file
raise ArgumentError, 'File layout must be a String representing filename' unless file.is_a?(String)
@body = file