Sha256: 409e50540c3028224388c64eb1d1a201649b0990a1613d42a1c4566d24456b40
Contents?: true
Size: 633 Bytes
Versions: 62
Compression:
Stored size: 633 Bytes
Contents
module Workarea decorate <%= class_name %>, with: :<%= app_name.optionize %> do decorated do # Place code to decorate here that would normally go on the class # level, e.g.: # # field :name, type: String end class_methods do # Place methods to define on the class level here. These methods # will be available by calling <%= class_name %>.your_method. Do # not prefix these methods with `self.` end # Instance methods can go right in the main definition of the # decorator, as it is a module that gets prepended into the class of # your choice. end end
Version data entries
62 entries across 62 versions & 1 rubygems