Class: Monolens::File

Inherits:
Object
  • Object
show all
Includes:
Lens
Defined in:
lib/monolens/file.rb

Instance Attribute Summary

Attributes included from Lens

#options

Instance Method Summary collapse

Methods included from Lens

#fail!, included, #initialize

Methods included from Lens::FetchSupport

#fetch_on

Instance Method Details

#call(arg, world = {}) ⇒ Object



12
13
14
# File 'lib/monolens/file.rb', line 12

def call(arg, world = {})
  option(:lenses).call(arg, world)
end

#examplesObject



16
17
18
# File 'lib/monolens/file.rb', line 16

def examples
  option(:examples, [])
end