module ActsAsSpan::IncludedInstanceMethods

Public Instance Methods

acts_as_span_instances() click to toggle source
# File lib/acts_as_span.rb, line 120
def acts_as_span_instances
  @_acts_as_span_instances ||= {}
end
span() click to toggle source
# File lib/acts_as_span.rb, line 112
def span
  span_for(:default)
end
span_for(name = :default) click to toggle source
# File lib/acts_as_span.rb, line 116
def span_for(name = :default)
  acts_as_span_instances[name] ||= SpanInstance.new(name, self, acts_as_span_definitions[name])
end
spans() click to toggle source
# File lib/acts_as_span.rb, line 108
def spans
  acts_as_span_definitions.keys.map { |acts_as_span_definition_name| span_for(acts_as_span_definition_name) }
end
validate_spans() click to toggle source
# File lib/acts_as_span.rb, line 124
def validate_spans
  spans.each(&:validate)
end