Class: FLGen::Arguments::Base
- Inherits:
-
Object
- Object
- FLGen::Arguments::Base
- Defined in:
- lib/flgen/arguments.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tool ⇒ Object
readonly
Returns the value of attribute tool.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, tool) ⇒ Base
constructor
A new instance of Base.
- #match_tool?(target_tool) ⇒ Boolean
Constructor Details
#initialize(type, tool) ⇒ Base
6 7 8 9 |
# File 'lib/flgen/arguments.rb', line 6 def initialize(type, tool) @type = type @tool = tool end |
Instance Attribute Details
#tool ⇒ Object (readonly)
Returns the value of attribute tool.
12 13 14 |
# File 'lib/flgen/arguments.rb', line 12 def tool @tool end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/flgen/arguments.rb', line 11 def type @type end |
Instance Method Details
#match_tool?(target_tool) ⇒ Boolean
14 15 16 |
# File 'lib/flgen/arguments.rb', line 14 def match_tool?(target_tool) tool.nil? || target_tool && (tool == target_tool) || false end |