Class: FLGen::Arguments::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/flgen/arguments.rb

Direct Known Subclasses

Define, Generic, Include, LibraryDirectory, LibraryFile

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#toolObject (readonly)

Returns the value of attribute tool.



12
13
14
# File 'lib/flgen/arguments.rb', line 12

def tool
  @tool
end

#typeObject (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