Class: Bookbinder::CodeExample
- Defined in:
- lib/bookbinder/code_example.rb
Defined Under Namespace
Classes: InvalidSnippet
Instance Method Summary collapse
Methods inherited from Section
#copied?, #directory, #full_name, get_instance, #get_modification_date_for, #initialize, store, #subnav_template
Constructor Details
This class inherits a constructor from Bookbinder::Section
Instance Method Details
#get_snippet_and_language_at(marker) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/bookbinder/code_example.rb', line 11 def get_snippet_and_language_at(marker) unless @repository.copied? @repository.announce_skip return '' end prepared_snippet_at(marker) end |