Sha256: 888c09facd589c8363465dd58df139e00bcca84c6a82bdc6d3c5730d38f97955
Contents?: true
Size: 286 Bytes
Versions: 11
Compression:
Stored size: 286 Bytes
Contents
class <%= config[:class_name] %><%= " < Struct.new(:user, :#{config[:resource]})" if config[:headless] %> attr_reader :user, :<%= config[:resource] %> def initialize(user, <%= config[:resource] %>) @user = user @<%= config[:resource] %> = <%= config[:resource] %> end end
Version data entries
11 entries across 11 versions & 1 rubygems