Sha256: fba153a14d2458db26aa2d2bf17dd69153e36b1e8b0b99dd98a53611b86b42c7
Contents?: true
Size: 488 Bytes
Versions: 8
Compression:
Stored size: 488 Bytes
Contents
module Troles module Macros class StrategyOptions attr_reader :subject_class def initialize subject_class @subject_class = subject_class end # @param [Symbol] name of the macro to run def apply_macro name # overrides default method that returns false begin subject_class.send :include, "Troles::Macros::#{strategy_name.to_s.camelize}".constantize rescue end end end end end
Version data entries
8 entries across 4 versions & 1 rubygems