Top Level Namespace
Defined Under Namespace
Modules: Bridgetown, Kramdown Classes: Rb, Roda
Instance Attribute Summary collapse
-
#bridgetown_state ⇒ Object
Returns the value of attribute bridgetown_state.
Instance Method Summary collapse
-
#require_all(path) ⇒ Object
Require all of the Ruby files in the given directory.
Instance Attribute Details
#bridgetown_state ⇒ Object
Returns the value of attribute bridgetown_state.
3 4 5 |
# File 'bridgetown-core/lib/bridgetown-core/current.rb', line 3 def bridgetown_state @bridgetown_state end |
Instance Method Details
#require_all(path) ⇒ Object
Require all of the Ruby files in the given directory.
path - The String relative path from here to the directory.
Returns nothing.
10 11 12 13 14 15 |
# File 'bridgetown-core/lib/bridgetown-core.rb', line 10 def require_all(path) glob = File.join(__dir__, path, "*.rb") Dir[glob].each do |f| require f end end |