module Transpec::Syntax::Mixin::ShouldBase
Public Instance Methods
current_syntax_type()
click to toggle source
# File lib/transpec/syntax/mixin/should_base.rb, line 24 def current_syntax_type @current_syntax_type ||= :should end
matcher_node()
click to toggle source
# File lib/transpec/syntax/mixin/should_base.rb, line 32 def matcher_node if arg_node Util.each_forward_chained_node(arg_node, :include_origin) .select(&:send_type?).to_a.last else parent_node end end
positive?()
click to toggle source
# File lib/transpec/syntax/mixin/should_base.rb, line 28 def positive? method_name == :should end
should_range()
click to toggle source
# File lib/transpec/syntax/mixin/should_base.rb, line 41 def should_range if arg_node selector_range else selector_range.join(expression_range.end) end end