Class: Source2MD::Formatter::TypeCodeInclude
- Defined in:
- lib/source2md/formatter/type_code_include.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TypeCodeInclude
constructor
A new instance of TypeCodeInclude.
- #to_md ⇒ Object
Constructor Details
#initialize ⇒ TypeCodeInclude
Returns a new instance of TypeCodeInclude.
8 9 10 11 12 |
# File 'lib/source2md/formatter/type_code_include.rb', line 8 def initialize(...) super @user_define_path, @desc = element.head["code_include"].split(/\s+/, 2) end |
Class Method Details
.accept?(element) ⇒ Boolean
4 5 6 |
# File 'lib/source2md/formatter/type_code_include.rb', line 4 def self.accept?(element) element.head["code_include"] end |