Module: Foobara::Callback::Block::Concerns::Type::ClassMethods
- Defined in:
- foobara-0.2.7/projects/callback/src/block/concerns/type.rb
Instance Method Summary collapse
-
#type ⇒ Object
TODO: consider renaming this to symbol? Could be confused with Foobara::Type concept Returns things like :before, :after, :around, :error to indicate what type of callback it is.
Instance Method Details
#type ⇒ Object
TODO: consider renaming this to symbol? Could be confused with Foobara::Type concept Returns things like :before, :after, :around, :error to indicate what type of callback it is
11 12 13 |
# File 'projects/callback/src/block/concerns/type.rb', line 11 def type @type ||= Util.non_full_name_underscore(self)&.gsub(/_block$/, "")&.to_sym end |