Class: SearchMagic::StackFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/search_magic/stack_frame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, path = []) ⇒ StackFrame

Returns a new instance of StackFrame.



5
6
7
8
# File 'lib/search_magic/stack_frame.rb', line 5

def initialize(type, path = [])
  self.type = type
  self.path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/search_magic/stack_frame.rb', line 3

def path
  @path
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/search_magic/stack_frame.rb', line 3

def type
  @type
end

Instance Method Details

#wants_field?(field_name) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/search_magic/stack_frame.rb', line 10

def wants_field?(field_name)
  !field_excluded?(field_name) && field_included?(field_name)
end