Class: SearchMagic::StackFrame
- Inherits:
-
Object
- Object
- SearchMagic::StackFrame
- Defined in:
- lib/search_magic/stack_frame.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, path = []) ⇒ StackFrame
constructor
A new instance of StackFrame.
- #wants_field?(field_name) ⇒ Boolean
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
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/search_magic/stack_frame.rb', line 3 def path @path end |
#type ⇒ Object
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
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 |