Module: ViewSpec::DSL::Notes

Extended by:
ActiveSupport::Concern
Included in:
GroupContext, ScenarioContext, SpecContext
Defined in:
lib/view_spec/dsl/notes.rb

Instance Method Summary collapse

Instance Method Details

#notes(str = nil) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/view_spec/dsl/notes.rb', line 6

def notes(str = nil)
  if str.nil?
    @notes
  else
    executable = ExecutableString.new(str, caller_lang(caller_locations(1..1)&.first, :md))
    @notes = Note.new(@entry, executable)
  end
end