Module: Houston::Extensions

Includes:
Deprecated
Included in:
Houston
Defined in:
lib/houston/boot/extensions.rb,
lib/houston/boot/extensions/dsl.rb,
lib/houston/boot/extensions/view.rb,
lib/houston/boot/extensions/oauth.rb,
lib/houston/boot/extensions/events.rb,
lib/houston/boot/extensions/layout.rb,
lib/houston/boot/extensions/features.rb,
lib/houston/boot/extensions/deprecated.rb,
lib/houston/boot/extensions/navigation.rb,
lib/houston/boot/extensions/serializers.rb

Defined Under Namespace

Modules: AbilityBlock, AcceptsName, Deprecated, HasForm, HasTable, LinkTo, Permitted, Render Classes: Event, Events, Feature, Features, Layout, Link, Navigation, Oauth, RegisterEventDsl, RegisterEventsDsl, Serializers, View, Views

Instance Method Summary collapse

Methods included from Deprecated

#add_navigation_renderer, #add_project_column, #add_project_feature, #add_project_header_command, #add_project_option, #add_user_option, #project_header_commands

Instance Method Details

#add_serializer(serializer) ⇒ Object



57
58
59
# File 'lib/houston/boot/extensions.rb', line 57

def add_serializer(serializer)
  serializers.add(serializer)
end

#eventsObject



17
18
19
20
# File 'lib/houston/boot/extensions.rb', line 17

def events
  return @events if defined?(@events)
  @events = Houston::Extensions::Events.new
end

#layoutObject



22
23
24
25
# File 'lib/houston/boot/extensions.rb', line 22

def layout
  return @layout if defined?(@layout)
  @layout = Houston::Extensions::Layout.new
end


27
28
29
30
# File 'lib/houston/boot/extensions.rb', line 27

def navigation
  return @navigation if defined?(@navigation)
  @navigation = Houston::Extensions::Navigation.new
end

#oauthObject



32
33
34
35
# File 'lib/houston/boot/extensions.rb', line 32

def oauth
  return @oauth if defined?(@oauth)
  @oauth = Houston::Extensions::Oauth.new
end

#project_featuresObject



37
38
39
40
# File 'lib/houston/boot/extensions.rb', line 37

def project_features
  return @project_features if defined?(@project_features)
  @project_features = Houston::Extensions::Features.new
end

#register_events(&block) ⇒ Object



53
54
55
# File 'lib/houston/boot/extensions.rb', line 53

def register_events(&block)
  events.register(&block)
end

#serializersObject



42
43
44
45
# File 'lib/houston/boot/extensions.rb', line 42

def serializers
  return @serializers if defined?(@serializers)
  @serializers = Houston::Extensions::Serializers.new
end

#viewObject



47
48
49
50
# File 'lib/houston/boot/extensions.rb', line 47

def view
  return @view if defined?(@view)
  @view = Houston::Extensions::Views.new
end