Sha256: 9342bf988eb557287bc5767fcf96d891bff041e86a05736d54ece5b86c5a4fb5

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

module Represent
  module BodyHelper 
    def body_id(string)
      @body_id = string
    end
  
    def body_class(string)
      @body_class = string
    end
  
    def body_attributes(options = {})
      options[:class] = @body_class if @body_class
      options[:id] = @body_id if @body_id
    
      options
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
represent-0.0.1.5 lib/represent/body_helper.rb